summaryrefslogtreecommitdiffstats
path: root/vdslib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-02-23 15:28:09 +0000
committerTor Egge <Tor.Egge@oath.com>2018-02-23 15:28:09 +0000
commit3747f96e80ad43548af67cbe1b4a7cba1817d9e0 (patch)
tree45fdaaa97410a1f4bde9ca72b9b8799df83c90aa /vdslib
parent180bc0034ae5ba6f2b5644a7c520486bbcc511bd (diff)
Simplify distributor unit tests.
Diffstat (limited to 'vdslib')
-rw-r--r--vdslib/src/vespa/vdslib/state/cluster_state_bundle.cpp6
-rw-r--r--vdslib/src/vespa/vdslib/state/cluster_state_bundle.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/vdslib/src/vespa/vdslib/state/cluster_state_bundle.cpp b/vdslib/src/vespa/vdslib/state/cluster_state_bundle.cpp
index c55f1aadd06..a2bbba5e52c 100644
--- a/vdslib/src/vespa/vdslib/state/cluster_state_bundle.cpp
+++ b/vdslib/src/vespa/vdslib/state/cluster_state_bundle.cpp
@@ -31,4 +31,10 @@ ClusterStateBundle::getVersion() const
return _baselineClusterState->getVersion();
}
+bool
+ClusterStateBundle::operator==(const ClusterStateBundle &rhs) const
+{
+ return *_baselineClusterState == *rhs._baselineClusterState;
+}
+
}
diff --git a/vdslib/src/vespa/vdslib/state/cluster_state_bundle.h b/vdslib/src/vespa/vdslib/state/cluster_state_bundle.h
index c54df1d1952..77d26092f4e 100644
--- a/vdslib/src/vespa/vdslib/state/cluster_state_bundle.h
+++ b/vdslib/src/vespa/vdslib/state/cluster_state_bundle.h
@@ -21,6 +21,7 @@ public:
const std::shared_ptr<const ClusterState> &getBaselineClusterState() const;
const std::shared_ptr<const ClusterState> &getDerivedClusterState(document::BucketSpace bucketSpace) const;
uint32_t getVersion() const;
+ bool operator==(const ClusterStateBundle &rhs) const;
};
}