Skip to content

Commit

Permalink
Issue message if DB IOV updated during job
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Oct 15, 2024
1 parent eae5c15 commit 04eb37d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CondCore/CondDB/src/IOVProxy.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <memory>

#include "CondCore/CondDB/interface/IOVProxy.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SessionImpl.h"

namespace cond {
Expand Down Expand Up @@ -293,6 +294,7 @@ namespace cond {
}

void IOVProxy::fetchSequence(cond::Time_t lowerGroup, cond::Time_t higherGroup) {
bool firstTime = m_data->iovSequence.empty();
m_data->iovSequence.clear();
m_session->iovSchema().iovTable().select(
m_data->tagInfo.name, lowerGroup, higherGroup, m_data->snapshotTime, m_data->iovSequence);
Expand All @@ -313,6 +315,11 @@ namespace cond {
m_data->groupHigherIov = cond::time::MAX_VAL;
}
}
if (not firstTime) {
edm::LogSystem("NewIOV") << "Fetched new IOV for '" << m_data->tagInfo.name << "' request interval [ "
<< lowerGroup << " , " << higherGroup << " ] new range [ " << m_data->groupLowerIov
<< " , " << m_data->groupHigherIov << " ] #entries " << m_data->iovSequence.size();
}

m_data->numberOfQueries++;
}
Expand Down

0 comments on commit 04eb37d

Please sign in to comment.