bareos: master 686394a6

Author Committer Branch Timestamp Parent
stephand stephand master 2020-06-15 14:54 master a59af84d Pending
Changeset bvfs: Prevent from unique key violations on .bvfs_update

When multiple .bvfs_update operations were run simultaneously and
both jobs have many common paths, it was possible that this caused
unique constraint violation errors (PostgreSQL) or duplicate entry
errors (MySQL/MariaDB). While this did not cause any functional
problem, it could bloat logs with lots of error messages in some
cases. This change adds an explicit exclusive write lock to prevent
from such error messages.
mod - core/src/cats/bdb_query_enum_class.h Diff File
mod - core/src/cats/bdb_query_names.inc Diff File
mod - core/src/cats/bvfs.cc Diff File
add - core/src/cats/dml/0078_bvfs_lock_pathhierarchy_0 Diff File
add - core/src/cats/dml/0078_bvfs_lock_pathhierarchy_0.mysql Diff File
add - core/src/cats/dml/0078_bvfs_lock_pathhierarchy_0.postgresql Diff File
add - core/src/cats/dml/0079_bvfs_unlock_tables_0 Diff File
add - core/src/cats/dml/0079_bvfs_unlock_tables_0.mysql Diff File
mod - core/src/cats/mysql_queries.inc Diff File
mod - core/src/cats/postgresql_queries.inc Diff File
mod - core/src/cats/sqlite_queries.inc Diff File