summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-18 12:54:07 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-18 12:54:07 +0000
commitb17c5c96e18ae04a1b39b4d0ec3dc89832038c05 (patch)
treef401ff833fcfaf0dee1852c169671e382b5ed48b /storage/src/tests/persistence/filestorage/filestormanagertest.cpp
parenta7f45c9843e197c5881ef67fa83e1d23c78daa17 (diff)
Do not retrieve config once for every thread.
Diffstat (limited to 'storage/src/tests/persistence/filestorage/filestormanagertest.cpp')
-rw-r--r--storage/src/tests/persistence/filestorage/filestormanagertest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
index ec86c8db679..761888e9f9b 100644
--- a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
+++ b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
@@ -202,7 +202,8 @@ createThread(vdstestlib::DirConfig& config,
FileStorThreadMetrics& metrics)
{
(void) config;
- return std::make_unique<PersistenceThread>(node.executor(), node.getComponentRegister(), config.getConfigId(),
+ vespa::config::content::StorFilestorConfig cfg;
+ return std::make_unique<PersistenceThread>(node.executor(), node.getComponentRegister(), cfg,
provider, filestorHandler, notifier, metrics);
}