bareos: master 5c07e81c

Author Committer Branch Timestamp Parent
Sebastian Sura arogge master 2024-06-19 11:54 master aa4cb012 Pending
Changeset alist: fix use of internal iterator

As alists mutated themselves when iterated over, it was not safe to
even iterate over them from multiple threads at the same time. This
lead to hard to debug bugs. This commit changes the foreach_alist
macro in such a way that it does not rely on the internal iterator
state any longer and instead uses a simple pointer pair.
mod - core/src/dird/backup.cc Diff File
mod - core/src/dird/dir_plugins.cc Diff File
mod - core/src/dird/dird_conf.cc Diff File
mod - core/src/dird/fd_cmds.cc Diff File
mod - core/src/dird/job.cc Diff File
mod - core/src/dird/msgchan.cc Diff File
mod - core/src/dird/ndmp_dma_generic.cc Diff File
mod - core/src/dird/ndmp_dma_storage.cc Diff File
mod - core/src/dird/sd_cmds.cc Diff File
mod - core/src/dird/storage.cc Diff File
mod - core/src/dird/ua_acl.cc Diff File
mod - core/src/dird/ua_audit.cc Diff File
mod - core/src/dird/ua_cmds.cc Diff File
mod - core/src/dird/ua_select.cc Diff File
mod - core/src/filed/crypto.cc Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/filed/fd_plugins.cc Diff File
mod - core/src/filed/filed_conf.cc Diff File
mod - core/src/filed/filed_utils.cc Diff File
mod - core/src/filed/restore.cc Diff File
mod - core/src/findlib/xattr.cc Diff File
mod - core/src/lib/alist.h Diff File
mod - core/src/lib/breg.cc Diff File
mod - core/src/lib/crypto_openssl.cc Diff File
mod - core/src/lib/output_formatter.cc Diff File
mod - core/src/lib/output_formatter_resource.cc Diff File
mod - core/src/lib/plugins.cc Diff File
mod - core/src/lib/runscript.cc Diff File
mod - core/src/stored/autochanger.cc Diff File
mod - core/src/stored/autochanger_resource.cc Diff File
mod - core/src/stored/backends/chunked_device.cc Diff File
mod - core/src/stored/bextract.cc Diff File
mod - core/src/stored/dir_cmd.cc Diff File
mod - core/src/stored/job.cc Diff File
mod - core/src/stored/reserve.cc Diff File
mod - core/src/stored/sd_plugins.cc Diff File
mod - core/src/stored/status.cc Diff File
mod - core/src/stored/stored_conf.cc Diff File
mod - core/src/tests/alist_test.cc Diff File
mod - core/src/tests/multiplied_device_test.cc Diff File
mod - core/src/tests/test_config_parser_dir.cc Diff File