aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2023-04-19 14:05:42 +0000
committerTor Brede Vekterli <vekterli@yahooinc.com>2023-04-19 14:05:42 +0000
commit9c04f6c0508de1aeea5a163262ae14b1a0bb1faf (patch)
treececb03cdb233c810872f8c1a11ee68018a78056e /documentapi
parent6c98021a888d31632eeb2140c771b4a07a60ed73 (diff)
Add condition support to distributor `GetOperation`
This involves two things: * Propagate input condition to sent Get requests when present * Add condition match status to newest replica metadata aggregation
Diffstat (limited to 'documentapi')
-rw-r--r--documentapi/src/vespa/documentapi/messagebus/messages/testandsetcondition.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/documentapi/src/vespa/documentapi/messagebus/messages/testandsetcondition.h b/documentapi/src/vespa/documentapi/messagebus/messages/testandsetcondition.h
index c06c1767414..1e0bfda986c 100644
--- a/documentapi/src/vespa/documentapi/messagebus/messages/testandsetcondition.h
+++ b/documentapi/src/vespa/documentapi/messagebus/messages/testandsetcondition.h
@@ -27,6 +27,10 @@ public:
const vespalib::string & getSelection() const { return _selection; }
bool isPresent() const noexcept { return !_selection.empty(); }
+
+ bool operator==(const TestAndSetCondition& rhs) const noexcept {
+ return (_selection == rhs._selection);
+ }
};
}