File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,9 +63,12 @@ this case engine will use value of ParallelWorkers setting when building
6363indices, i.e. this phase could be run in parallel by the engine itself. To
6464fully avoid parallel operations when restoring database, use -PARALLEL 1.
6565
66- Note, gbak not uses firebird.conf by itself and ParallelWorkers setting does
66+ Note: gbak not uses firebird.conf by itself and ParallelWorkers setting does
6767not affect its operations.
6868
69+ Note: the upper limit for the number of parallel workers is 64 and applied by
70+ both backup and restore.
71+
6972
7073Examples.
7174
Original file line number Diff line number Diff line change @@ -899,6 +899,8 @@ int gbak(Firebird::UtilSvc* uSvc)
899899 BURP_error (408 , true , argv[itr]);
900900 // msg 408 expected parallel workers, encountered "%s"
901901 }
902+ if (tdgbl->gbl_sw_par_workers > BURP_MAX_PARALLEL_WORKERS)
903+ tdgbl->gbl_sw_par_workers = BURP_MAX_PARALLEL_WORKERS;
902904 break ;
903905 case IN_SW_BURP_Y:
904906 {
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ static const char* burp_repl_mode_sw_table[] =
239239 BURP_SW_MODE_NONE , BURP_SW_MODE_RO , BURP_SW_MODE_RW
240240};
241241
242+ const int BURP_MAX_PARALLEL_WORKERS = 64 ;
242243
243244#endif // BURP_BURP_H
244245
You can’t perform that action at this time.
0 commit comments