aboutsummaryrefslogtreecommitdiffstats
path: root/persistence
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-02-19 05:11:08 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-02-19 07:19:55 +0000
commitd29666a12b9777829c328310ddff6af2580e59c5 (patch)
tree4c4b26c17af397fb6577cfa506c25e27bd24a41f /persistence
parent0be286e9026e96f8a1b032a2f2a08e943cf771ec (diff)
- Reduce visibility of ClusterState and Distribution.
Diffstat (limited to 'persistence')
-rw-r--r--persistence/src/vespa/persistence/spi/clusterstate.cpp8
-rw-r--r--persistence/src/vespa/persistence/spi/clusterstate.h3
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();
/**