summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/documentdb.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp
index 2cc2517fe2a..1b2cc18708c 100644
--- a/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp
@@ -234,8 +234,7 @@ public:
}
};
-InitDoneTask::~InitDoneTask() {
-}
+InitDoneTask::~InitDoneTask() = default;
void
DocumentDB::initManagers()
@@ -1219,6 +1218,10 @@ updateLidSpaceMetrics(MetricSetType &metrics, const search::IDocumentMetaStore &
void
DocumentDB::updateMetrics(DocumentDBMetricsCollection &metrics)
{
+ if (_state.getState() < DDBState::State::REPLAY_TRANSACTION_LOG) {
+ return;
+ }
+
updateLegacyMetrics(metrics.getLegacyMetrics());
updateIndexMetrics(metrics, _subDBs.getReadySubDB()->getSearchableStats());
updateAttributeMetrics(metrics, _subDBs);