From 1350d57a3eb20ec03966a6cbae44757c4ed6077b Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Thu, 17 Jul 2025 22:03:29 +0200 Subject: [PATCH] [Common] Temporary first-order fix to CCDB caching mistake --- Common/Tools/timestampModule.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common/Tools/timestampModule.h b/Common/Tools/timestampModule.h index 99241fa7713..447fd35cb72 100644 --- a/Common/Tools/timestampModule.h +++ b/Common/Tools/timestampModule.h @@ -96,6 +96,10 @@ class TimestampModule int64_t sorTimestamp = runDuration.first; // timestamp of the SOR/SOX/STF in ms int64_t eorTimestamp = runDuration.second; // timestamp of the EOR/EOX/ETF in ms + // clear cache to prevent interference with orbit reset queries from other code + // FIXME this should not have been a problem, to be investigated + ccdb->clearCache(timestampOpts.orbit_reset_path.value.data()); + const bool isUnanchoredRun3MC = runNumber >= 300000 && runNumber < 500000; if (timestampOpts.isRun2MC.value == 1 || isUnanchoredRun3MC) { // isRun2MC: bc/orbit distributions are not simulated in Run2 MC. All bcs are set to 0.