From 63f59338a7ae17b1cb1a3650e0c23abbf115d9fa Mon Sep 17 00:00:00 2001 From: swenzel Date: Tue, 4 Mar 2025 17:15:24 +0100 Subject: [PATCH] Semaphore distinction in CCDB Use different semaphores when retrieving headers vs snapshotting the blob. Otherwise there seems to be a funny overlap in actions and snapshotting was not really protected. Fixes: https://its.cern.ch/jira/browse/O2-5834 --- CCDB/src/CcdbApi.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CCDB/src/CcdbApi.cxx b/CCDB/src/CcdbApi.cxx index f436172de42ff..df05d393100d6 100644 --- a/CCDB/src/CcdbApi.cxx +++ b/CCDB/src/CcdbApi.cxx @@ -1461,7 +1461,7 @@ std::map CcdbApi::retrieveHeaders(std::string const& p if (!mSnapshotCachePath.empty()) { // protect this sensitive section by a multi-process named semaphore - auto semaphore_barrier = std::make_unique(mSnapshotCachePath, path); + auto semaphore_barrier = std::make_unique(mSnapshotCachePath + std::string("_headers"), path); std::string logfile = mSnapshotCachePath + "/log"; std::fstream out(logfile, ios_base::out | ios_base::app);