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 @@ -922,6 +922,8 @@ int gbak(Firebird::UtilSvc* uSvc)
922922 BURP_error (408 , true , argv[itr]);
923923 // msg 408 expected parallel workers, encountered "%s"
924924 }
925+ if (tdgbl->gbl_sw_par_workers > BURP_MAX_PARALLEL_WORKERS)
926+ tdgbl->gbl_sw_par_workers = BURP_MAX_PARALLEL_WORKERS;
925927 break ;
926928 case IN_SW_BURP_Y:
927929 {
Original file line number Diff line number Diff line change @@ -246,6 +246,7 @@ static inline constexpr const char* burp_repl_mode_sw_table[] =
246246 BURP_SW_MODE_NONE , BURP_SW_MODE_RO , BURP_SW_MODE_RW
247247};
248248
249+ const int BURP_MAX_PARALLEL_WORKERS = 64 ;
249250
250251#endif // BURP_BURP_H
251252
You can’t perform that action at this time.
0 commit comments