aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp')
-rw-r--r--storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
index e7323d07480..76e04852178 100644
--- a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
+++ b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
@@ -34,8 +34,7 @@ FileStorManager(const config::ConfigUri & configUri, const spi::PartitionStateLi
_partitions(partitions),
_providerCore(provider),
_providerErrorWrapper(_providerCore),
- _providerMetric(new spi::MetricPersistenceProvider(_providerErrorWrapper)),
- _provider(_providerMetric.get()),
+ _provider(&_providerErrorWrapper),
_bucketIdFactory(_component.getBucketIdFactory()),
_configUri(configUri),
_disks(),
@@ -47,7 +46,6 @@ FileStorManager(const config::ConfigUri & configUri, const spi::PartitionStateLi
_threadMonitor(),
_closed(false)
{
- _metrics->registerMetric(*_providerMetric),
_configFetcher.subscribe(_configUri.getConfigId(), this);
_configFetcher.start();
_component.registerMetric(*_metrics);