aboutsummaryrefslogtreecommitdiffstats
path: root/storageapi/src/vespa/storageapi/message/persistence.h
diff options
context:
space:
mode:
Diffstat (limited to 'storageapi/src/vespa/storageapi/message/persistence.h')
-rw-r--r--storageapi/src/vespa/storageapi/message/persistence.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/storageapi/src/vespa/storageapi/message/persistence.h b/storageapi/src/vespa/storageapi/message/persistence.h
index 1fdd5c369bf..f2161421feb 100644
--- a/storageapi/src/vespa/storageapi/message/persistence.h
+++ b/storageapi/src/vespa/storageapi/message/persistence.h
@@ -217,11 +217,13 @@ class GetReply : public BucketInfoReply {
DocumentSP _doc; // Null pointer if not found
Timestamp _beforeTimestamp;
Timestamp _lastModifiedTime;
+ bool _had_consistent_replicas;
public:
GetReply(const GetCommand& cmd,
const DocumentSP& doc = DocumentSP(),
- Timestamp lastModified = 0);
+ Timestamp lastModified = 0,
+ bool had_consistent_replicas = false);
~GetReply() override;
const DocumentSP& getDocument() const { return _doc; }
@@ -231,6 +233,8 @@ public:
Timestamp getLastModifiedTimestamp() const { return _lastModifiedTime; }
Timestamp getBeforeTimestamp() const { return _beforeTimestamp; }
+ bool had_consistent_replicas() const noexcept { return _had_consistent_replicas; }
+
bool wasFound() const { return (_doc.get() != 0); }
void print(std::ostream& out, bool verbose, const std::string& indent) const override;
DECLARE_STORAGEREPLY(GetReply, onGetReply)