diff options
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/storageserver/storagenode.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/storageserver/storagenode.cpp b/storage/src/vespa/storage/storageserver/storagenode.cpp index 6be8f0a5ec8..aa5475df823 100644 --- a/storage/src/vespa/storage/storageserver/storagenode.cpp +++ b/storage/src/vespa/storage/storageserver/storagenode.cpp @@ -215,7 +215,9 @@ StorageNode::initialize() // and the like. Note that at this time, all metrics should hopefully // have been created, such that we don't need to pay the extra cost of // reinitializing metric manager often. - _context.getComponentRegister().getMetricManager().init(_configUri, _context.getThreadPool()); + if ( ! _context.getComponentRegister().getMetricManager().isInitialized() ) { + _context.getComponentRegister().getMetricManager().init(_configUri, _context.getThreadPool()); + } if (_chain) { LOG(debug, "Storage chain configured. Calling open()"); |