File tree Expand file tree Collapse file tree
src/FirebirdSql.Data.FirebirdClient Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -606,6 +606,7 @@ internal static class IscCodes
606606 public const int isc_spb_rpr_commit_trans_64 = 49 ;
607607 public const int isc_spb_rpr_rollback_trans_64 = 50 ;
608608 public const int isc_spb_rpr_recover_two_phase_64 = 51 ;
609+ public const int isc_spb_rpr_par_workers = 52 ;
609610
610611 public const int isc_spb_rpr_validate_db = 0x01 ;
611612 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()
4444 startSpb . Append ( IscCodes . isc_action_svc_repair ) ;
4545 startSpb . Append2 ( IscCodes . isc_spb_dbname , Database ) ;
4646 startSpb . Append ( IscCodes . isc_spb_options , ( int ) Options ) ;
47+ if ( ConnectionStringOptions . ParallelWorkers > 0 )
48+ startSpb . Append ( IscCodes . isc_spb_rpr_par_workers , ConnectionStringOptions . ParallelWorkers ) ;
4749 StartTask ( startSpb ) ;
4850 ProcessServiceOutput ( new ServiceParameterBuffer2 ( Service . ParameterBufferEncoding ) ) ;
4951 }
@@ -70,6 +72,8 @@ public async Task ExecuteAsync(CancellationToken cancellationToken = default)
7072 startSpb . Append ( IscCodes . isc_action_svc_repair ) ;
7173 startSpb . Append2 ( IscCodes . isc_spb_dbname , Database ) ;
7274 startSpb . Append ( IscCodes . isc_spb_options , ( int ) Options ) ;
75+ if ( ConnectionStringOptions . ParallelWorkers > 0 )
76+ startSpb . Append ( IscCodes . isc_spb_rpr_par_workers , ConnectionStringOptions . ParallelWorkers ) ;
7377 await StartTaskAsync ( startSpb , cancellationToken ) . ConfigureAwait ( false ) ;
7478 await ProcessServiceOutputAsync ( new ServiceParameterBuffer2 ( Service . ParameterBufferEncoding ) , cancellationToken ) . ConfigureAwait ( false ) ;
7579 }
You can’t perform that action at this time.
0 commit comments