diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-19 05:11:08 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-19 07:19:55 +0000 |
commit | d29666a12b9777829c328310ddff6af2580e59c5 (patch) | |
tree | 4c4b26c17af397fb6577cfa506c25e27bd24a41f /persistence | |
parent | 0be286e9026e96f8a1b032a2f2a08e943cf771ec (diff) |
- Reduce visibility of ClusterState and Distribution.
Diffstat (limited to 'persistence')
-rw-r--r-- | persistence/src/vespa/persistence/spi/clusterstate.cpp | 8 | ||||
-rw-r--r-- | persistence/src/vespa/persistence/spi/clusterstate.h | 3 |
2 files changed, 1 insertions, 10 deletions
diff --git a/persistence/src/vespa/persistence/spi/clusterstate.cpp b/persistence/src/vespa/persistence/spi/clusterstate.cpp index 8f25e7fb332..d3c7afda222 100644 --- a/persistence/src/vespa/persistence/spi/clusterstate.cpp +++ b/persistence/src/vespa/persistence/spi/clusterstate.cpp @@ -43,14 +43,6 @@ ClusterState::ClusterState(const ClusterState& other) { ClusterState::~ClusterState() = default; -ClusterState& ClusterState::operator=(const ClusterState& other) { - ClusterState copy(other); - _state = std::move(copy._state); - _nodeIndex = copy._nodeIndex; - _distribution = std::move(copy._distribution); - return *this; -} - bool ClusterState::shouldBeReady(const Bucket& b) const { assert(_distribution); assert(_state); diff --git a/persistence/src/vespa/persistence/spi/clusterstate.h b/persistence/src/vespa/persistence/spi/clusterstate.h index 5b2b41b3161..5ae692f7661 100644 --- a/persistence/src/vespa/persistence/spi/clusterstate.h +++ b/persistence/src/vespa/persistence/spi/clusterstate.h @@ -25,9 +25,8 @@ public: const lib::Distribution& distribution); ClusterState(vespalib::nbostream& i); - ClusterState(const ClusterState& other); - ClusterState& operator=(const ClusterState& other); + ClusterState& operator=(const ClusterState& other) = delete; ~ClusterState(); /** |