bareos: master 1519b2ba

Author Committer Branch Timestamp Parent
Sebastian Sura Sebastian Sura master 2023-08-18 07:14 master 7312e5a9 Pending
Changeset jcr: split creating jcr with registering jcr

Because the jcr is not fully created after new_jcr (the daemon
specific pointer is still null), it is not 100% safe to register it
since a lot of jcr-chain-walkers expect that pointer to be set when
they walk the chain.
This introduces a new register_jcr function which handles just the
registering so that it can be done after the initialisation is
actually over.
mod - core/src/dird/jcr_util.cc Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/include/jcr.h Diff File
mod - core/src/lib/jcr.cc Diff File
mod - core/src/stored/bscan.cc Diff File
mod - core/src/stored/butil.cc Diff File
mod - core/src/stored/job.cc Diff File
mod - core/src/tools/btestls.cc Diff File