diff options
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(); /** |