diff options
author | Tor Brede Vekterli <vekterli@oath.com> | 2018-01-18 14:08:07 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahoo-inc.com> | 2018-02-01 13:30:38 +0000 |
commit | 716a1647e3f934bc0f344a6041134de2331dd90d (patch) | |
tree | e044b17356a13081ef2a44d51f7d0c5e31fcb63e /storage | |
parent | 39a95f693cf118bdb63fa38ec036863ff8f5c681 (diff) |
Remove conditional enabling of protocol feature in favor of version
Cannot selectively enable for DocumentProtocol since bucket space config
only applies per-cluster, while the protocol is application-global.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/storageserver/communicationmanager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/storage/src/vespa/storage/storageserver/communicationmanager.cpp b/storage/src/vespa/storage/storageserver/communicationmanager.cpp index ec39ffe7b36..eecf2b0be69 100644 --- a/storage/src/vespa/storage/storageserver/communicationmanager.cpp +++ b/storage/src/vespa/storage/storageserver/communicationmanager.cpp @@ -426,8 +426,7 @@ void CommunicationManager::configure(std::unique_ptr<CommunicationManagerConfig> // config here. _mbus = std::make_unique<mbus::RPCMessageBus>( mbus::ProtocolSet() - .add(std::make_shared<documentapi::DocumentProtocol>(*_component.getLoadTypes(), _component.getTypeRepo(), "", - _component.enableMultipleBucketSpaces())) + .add(std::make_shared<documentapi::DocumentProtocol>(*_component.getLoadTypes(), _component.getTypeRepo())) .add(std::make_shared<mbusprot::StorageProtocol>(_component.getTypeRepo(), *_component.getLoadTypes(), _component.enableMultipleBucketSpaces())), params, @@ -770,8 +769,7 @@ void CommunicationManager::updateMessagebusProtocol( const document::DocumentTypeRepo::SP &repo) { if (_mbus.get()) { framework::SecondTime now(_component.getClock().getTimeInSeconds()); - mbus::IProtocol::SP newDocumentProtocol(new documentapi::DocumentProtocol( - *_component.getLoadTypes(), repo, "", _component.enableMultipleBucketSpaces())); + auto newDocumentProtocol = std::make_shared<documentapi::DocumentProtocol>(*_component.getLoadTypes(), repo); std::lock_guard<std::mutex> guard(_earlierGenerationsLock); _earlierGenerations.push_back(std::make_pair(now, _mbus->getMessageBus().putProtocol(newDocumentProtocol))); mbus::IProtocol::SP newStorageProtocol(new mbusprot::StorageProtocol(repo, *_component.getLoadTypes(), _component.enableMultipleBucketSpaces())); |