diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2023-04-19 14:05:42 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2023-04-19 14:05:42 +0000 |
commit | 9c04f6c0508de1aeea5a163262ae14b1a0bb1faf (patch) | |
tree | cecb03cdb233c810872f8c1a11ee68018a78056e /documentapi/src | |
parent | 6c98021a888d31632eeb2140c771b4a07a60ed73 (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/src')
-rw-r--r-- | documentapi/src/vespa/documentapi/messagebus/messages/testandsetcondition.h | 4 |
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); + } }; } |