From b02583a09594601de0b1c93320d830ea6d28613d Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Wed, 14 Mar 2018 17:29:46 +0100 Subject: [PATCH] Add new shapes for CMS, improve DDDB to allow parsing upgrade files. --- DDCond/src/plugins/ConditionsSnapshotRootLoader.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/DDCond/src/plugins/ConditionsSnapshotRootLoader.cpp b/DDCond/src/plugins/ConditionsSnapshotRootLoader.cpp index e97f363fe..7f82356a8 100644 --- a/DDCond/src/plugins/ConditionsSnapshotRootLoader.cpp +++ b/DDCond/src/plugins/ConditionsSnapshotRootLoader.cpp @@ -104,8 +104,8 @@ void ConditionsSnapshotRootLoader::load_source(const std::string& nam) { buffers.push_back(p.release()); } -size_t ConditionsSnapshotRootLoader::load_single(key_type key, - const IOV& req_validity, +size_t ConditionsSnapshotRootLoader::load_single(key_type /* key */, + const IOV& /* req_validity */, RangeConditions& conditions) { size_t len = conditions.size(); @@ -113,16 +113,17 @@ size_t ConditionsSnapshotRootLoader::load_single(key_type key, load_source(s.first); m_sources.clear(); - return 0; + return conditions.size()-len; } size_t ConditionsSnapshotRootLoader::load_range(key_type key, - const IOV& req_validity, + const IOV& /* req_validity */, RangeConditions& conditions) { + size_t len = conditions.size(); for(const auto& s : m_sources ) load_source(s.first); m_sources.clear(); - return 0; + return conditions.size()-len; } -- GitLab