diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-03-01 05:46:39 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-03-01 17:01:45 +0000 |
commit | 87aa63c8c6f7544b648401e1836d8e66af000370 (patch) | |
tree | b95982c377e52d64c1c8fb937df621b23e7d63ef /storage | |
parent | 7566627f5a6a1230edc2fffa8ad0bf67abc39353 (diff) |
GC legacy dontcallupdatehooks metrics param.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/common/statusmetricconsumer.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/storage/src/vespa/storage/common/statusmetricconsumer.cpp b/storage/src/vespa/storage/common/statusmetricconsumer.cpp index 5998a2fe9a9..e23400063d4 100644 --- a/storage/src/vespa/storage/common/statusmetricconsumer.cpp +++ b/storage/src/vespa/storage/common/statusmetricconsumer.cpp @@ -51,16 +51,12 @@ bool StatusMetricConsumer::reportStatus(std::ostream& out, const framework::HttpUrlPath& path) const { - // Update metrics unless 'dontcallupdatehooks' is 1. Update - // snapshot metrics too, if callsnapshothooks is set to 1. - if (path.get("dontcallupdatehooks", 0) == 0) { - bool updateSnapshotHooks = path.get("callsnapshothooks", 0) == 1; - LOG(debug, "Updating metrics ahead of status page view%s", - updateSnapshotHooks ? ", calling snapshot hooks too" : "."); - _manager.updateMetrics(updateSnapshotHooks); - } else { - LOG(debug, "Not calling update hooks as dontcallupdatehooks option has been given"); - } + // snapshot metrics too, if callsnapshothooks is set to 1. + bool updateSnapshotHooks = path.get("callsnapshothooks", 0) == 1; + LOG(debug, "Updating metrics ahead of status page view%s", + updateSnapshotHooks ? ", calling snapshot hooks too" : "."); + _manager.updateMetrics(updateSnapshotHooks); + vespalib::system_time currentTime = _component.getClock().getSystemTime(); bool json = (path.getAttribute("format") == "json"); |