summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahoo-inc.com>2018-05-09 09:13:44 +0000
committerTor Brede Vekterli <vekterli@oath.com>2018-05-31 10:56:00 +0200
commit05a6c815d28405f98c06a6bfb226ecc9f64fc69d (patch)
treed094b0357c92d711e3a3410a97c02db1880ca9cb /storage
parent80fcc3e1159ad6b11c0650c17f446a133c10467d (diff)
Implicitly enable multiple bucket spaces in content backend
Config can still force new protocol version to be used even if version handshake indicates it should not be.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/storageserver/storagenode.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/storage/src/vespa/storage/storageserver/storagenode.cpp b/storage/src/vespa/storage/storageserver/storagenode.cpp
index ad98d64b173..6bb2ca31ec1 100644
--- a/storage/src/vespa/storage/storageserver/storagenode.cpp
+++ b/storage/src/vespa/storage/storageserver/storagenode.cpp
@@ -206,10 +206,8 @@ StorageNode::initialize()
_chain.reset(createChain().release());
- if (_component->enableMultipleBucketSpaces()) {
- assert(_communicationManager != nullptr);
- _communicationManager->updateBucketSpacesConfig(*_bucketSpacesConfig);
- }
+ assert(_communicationManager != nullptr);
+ _communicationManager->updateBucketSpacesConfig(*_bucketSpacesConfig);
// Start the metric manager, such that it starts generating snapshots
// and the like. Note that at this time, all metrics should hopefully
@@ -359,9 +357,7 @@ StorageNode::handleLiveConfigUpdate(const InitialGuard & initGuard)
if (_newBucketSpacesConfig) {
_bucketSpacesConfig = std::move(_newBucketSpacesConfig);
_context.getComponentRegister().setBucketSpacesConfig(*_bucketSpacesConfig);
- if (_component->enableMultipleBucketSpaces()) {
- _communicationManager->updateBucketSpacesConfig(*_bucketSpacesConfig);
- }
+ _communicationManager->updateBucketSpacesConfig(*_bucketSpacesConfig);
}
}