File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/FirebirdSql.Data.FirebirdClient Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -606,6 +606,7 @@ internal static class IscCodes
606
606
public const int isc_spb_rpr_commit_trans_64 = 49 ;
607
607
public const int isc_spb_rpr_rollback_trans_64 = 50 ;
608
608
public const int isc_spb_rpr_recover_two_phase_64 = 51 ;
609
+ public const int isc_spb_rpr_par_workers = 52 ;
609
610
610
611
public const int isc_spb_rpr_validate_db = 0x01 ;
611
612
public const int isc_spb_rpr_sweep_db = 0x02 ;
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ public void Execute()
44
44
startSpb . Append ( IscCodes . isc_action_svc_repair ) ;
45
45
startSpb . Append2 ( IscCodes . isc_spb_dbname , Database ) ;
46
46
startSpb . Append ( IscCodes . isc_spb_options , ( int ) Options ) ;
47
+ if ( ConnectionStringOptions . ParallelWorkers > 0 )
48
+ startSpb . Append ( IscCodes . isc_spb_rpr_par_workers , ConnectionStringOptions . ParallelWorkers ) ;
47
49
StartTask ( startSpb ) ;
48
50
ProcessServiceOutput ( new ServiceParameterBuffer2 ( Service . ParameterBufferEncoding ) ) ;
49
51
}
@@ -70,6 +72,8 @@ public async Task ExecuteAsync(CancellationToken cancellationToken = default)
70
72
startSpb . Append ( IscCodes . isc_action_svc_repair ) ;
71
73
startSpb . Append2 ( IscCodes . isc_spb_dbname , Database ) ;
72
74
startSpb . Append ( IscCodes . isc_spb_options , ( int ) Options ) ;
75
+ if ( ConnectionStringOptions . ParallelWorkers > 0 )
76
+ startSpb . Append ( IscCodes . isc_spb_rpr_par_workers , ConnectionStringOptions . ParallelWorkers ) ;
73
77
await StartTaskAsync ( startSpb , cancellationToken ) . ConfigureAwait ( false ) ;
74
78
await ProcessServiceOutputAsync ( new ServiceParameterBuffer2 ( Service . ParameterBufferEncoding ) , cancellationToken ) . ConfigureAwait ( false ) ;
75
79
}
You can’t perform that action at this time.
0 commit comments