diff options
author | Tor Egge <Tor.Egge@oath.com> | 2017-11-08 22:29:53 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2017-11-08 22:33:45 +0000 |
commit | c0659e1f5cd3fbdc18f046a25f8ad5fcdae7b7cd (patch) | |
tree | fee5f93d50ff9a76585e10b49f409bdcc9959297 /storage | |
parent | 782fca3604665eb5b29fefb0f97b8d856c627ff3 (diff) |
Remove dead code in distributor cluster information.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/distributor/clusterinformation.cpp | 15 | ||||
-rw-r--r-- | storage/src/vespa/storage/distributor/clusterinformation.h | 2 |
2 files changed, 0 insertions, 17 deletions
diff --git a/storage/src/vespa/storage/distributor/clusterinformation.cpp b/storage/src/vespa/storage/distributor/clusterinformation.cpp index 8e956a1cf61..2e22d7db51d 100644 --- a/storage/src/vespa/storage/distributor/clusterinformation.cpp +++ b/storage/src/vespa/storage/distributor/clusterinformation.cpp @@ -7,21 +7,6 @@ namespace storage::distributor { bool -ClusterInformation::ownsBucket(const document::BucketId& bucketId) const -{ - try { - uint16_t distributor(getDistribution().getIdealDistributorNode( - getClusterState(), bucketId)); - - return (getDistributorIndex() == distributor); - } catch (lib::TooFewBucketBitsInUseException& e) { - return false; - } catch (lib::NoDistributorsAvailableException& e) { - return false; - } -} - -bool ClusterInformation::nodeInSameGroupAsSelf(uint16_t otherNode) const { return (getDistribution().getNodeGraph().getGroupForNode(otherNode) diff --git a/storage/src/vespa/storage/distributor/clusterinformation.h b/storage/src/vespa/storage/distributor/clusterinformation.h index 4494b137f89..8b416e26147 100644 --- a/storage/src/vespa/storage/distributor/clusterinformation.h +++ b/storage/src/vespa/storage/distributor/clusterinformation.h @@ -32,8 +32,6 @@ public: virtual const char* getStorageUpStates() const = 0; - bool ownsBucket(const document::BucketId& bucketId) const; - bool nodeInSameGroupAsSelf(uint16_t otherNode) const; vespalib::string getDistributionHash() const; |