From fd242e5c0d7763f5d9bdc8dfb7b51e78c55b72db Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Sat, 19 Jul 2025 20:36:47 +0200 Subject: [PATCH] [Common] Fix timestamp module Replaces `getForTimestamp` with `getSpecific` in CCDB calls of the timestamp module to ensure metadata is cleared in the internal state of the CCDB manager. --- Common/Tools/timestampModule.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Tools/timestampModule.h b/Common/Tools/timestampModule.h index 447fd35cb72..80016dbfde3 100644 --- a/Common/Tools/timestampModule.h +++ b/Common/Tools/timestampModule.h @@ -108,12 +108,12 @@ class TimestampModule orbitResetTimestamp = sorTimestamp * 1000; // from ms to us } else if (runNumber < 300000) { // Run 2 LOGF(debug, "Getting orbit-reset timestamp using start-of-run timestamp from CCDB"); - auto ctp = ccdb->template getForTimeStamp>(timestampOpts.orbit_reset_path.value.data(), sorTimestamp); + auto ctp = ccdb->template getSpecific>(timestampOpts.orbit_reset_path.value.data(), sorTimestamp); orbitResetTimestamp = (*ctp)[0]; } else { // sometimes orbit is reset after SOR. Using EOR timestamps for orbitReset query is more reliable LOGF(debug, "Getting orbit-reset timestamp using end-of-run timestamp from CCDB"); - auto ctp = ccdb->template getForTimeStamp>(timestampOpts.orbit_reset_path.value.data(), eorTimestamp / 2 + sorTimestamp / 2); + auto ctp = ccdb->template getSpecific>(timestampOpts.orbit_reset_path.value.data(), eorTimestamp / 2 + sorTimestamp / 2); orbitResetTimestamp = (*ctp)[0]; }