Skip to content

Commit 5449519

Browse files
committed
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
1 parent f68c7bf commit 5449519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CCDB/src/CcdbApi.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ std::map<std::string, std::string> CcdbApi::retrieveHeaders(std::string const& p
14611461

14621462
if (!mSnapshotCachePath.empty()) {
14631463
// protect this sensitive section by a multi-process named semaphore
1464-
auto semaphore_barrier = std::make_unique<CCDBSemaphore>(mSnapshotCachePath, path);
1464+
auto semaphore_barrier = std::make_unique<CCDBSemaphore>(mSnapshotCachePath + std::string("_headers"), path);
14651465

14661466
std::string logfile = mSnapshotCachePath + "/log";
14671467
std::fstream out(logfile, ios_base::out | ios_base::app);

0 commit comments

Comments
 (0)