summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-03-04 13:02:38 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-03-04 13:02:38 +0000
commit1da801ef6089e8b184f2be9ef7933d72fde71be9 (patch)
tree7b363e5588bee4b6a2830904d44b4f6b4549fef6 /storage
parent60679416b8ef64afebd7514571b9cf6c188c11b5 (diff)
Use max on stripes, instead of threads
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
index bd1500b5c47..ea6f5e03a80 100644
--- a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
+++ b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp
@@ -104,8 +104,8 @@ FileStorManager::configure(std::unique_ptr<vespa::config::content::StorFilestorC
if (!liveUpdate) {
_config = std::move(config);
_disks.resize(_component.getDiskCount());
- size_t numThreads = std::max(4, _config->numThreads);
- size_t numStripes = numThreads / 2;
+ size_t numThreads = _config->numThreads;
+ size_t numStripes = std::max(size_t(1u), numThreads / 2);
_metrics->initDiskMetrics(_disks.size(), _component.getLoadTypes()->getMetricLoadTypes(), numStripes, numThreads);
_filestorHandler = std::make_unique<FileStorHandler>(numThreads, numStripes, *this, *_metrics, _partitions, _compReg);