summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-01-25 09:54:17 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-01-25 09:54:17 +0000
commitb1079b193ac984cb91bc625298e8157fbe0e9361 (patch)
tree50bb1f4b512fa94da315bbd5f633d5c468661183 /searchcore
parentcc05c9e9a0af1be6dcede4d856b424438598baf6 (diff)
You can never get 0 cores. There will be at least 1.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/proton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
index 1aa4fc29a21..57f36d10745 100644
--- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
@@ -434,7 +434,7 @@ Proton::~Proton()
if (_fs4Server) {
_fs4Server->shutDown();
}
- size_t numCores = std::max(1u, _protonConfigurer.getActiveConfigSnapshot()->getBootstrapConfig()->getHwInfo().cpu().cores());
+ size_t numCores = _protonConfigurer.getActiveConfigSnapshot()->getBootstrapConfig()->getHwInfo().cpu().cores();
vespalib::ThreadStackExecutor closePool(std::min(_documentDBMap.size(), numCores), 0x20000);
closeDocumentDBs(closePool);
_documentDBMap.clear();