summaryrefslogtreecommitdiff
path: root/src/mongo/db/signed_logical_time.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2017-03-27 15:40:32 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2017-03-28 18:05:58 -0400
commit399ba02faf7124d4b4c52f8b7e91f5aeb307ee1b (patch)
tree86f1fa09b54bc0f9984081fb3652398ca895a9c2 /src/mongo/db/signed_logical_time.h
parentea0e436f77b1a1e7977df55d6fd4d70c5aa7b9b8 (diff)
downloadmongo-399ba02faf7124d4b4c52f8b7e91f5aeb307ee1b.tar.gz
SERVER-28438 Add keyId field to logicalTime object
Diffstat (limited to 'src/mongo/db/signed_logical_time.h')
-rw-r--r--src/mongo/db/signed_logical_time.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mongo/db/signed_logical_time.h b/src/mongo/db/signed_logical_time.h
index 7b96e51df79..fde222efb39 100644
--- a/src/mongo/db/signed_logical_time.h
+++ b/src/mongo/db/signed_logical_time.h
@@ -44,8 +44,8 @@ public:
SignedLogicalTime() = default;
- explicit SignedLogicalTime(LogicalTime time, TimeProof proof)
- : _time(std::move(time)), _proof(std::move(proof)) {}
+ explicit SignedLogicalTime(LogicalTime time, TimeProof proof, long long keyId)
+ : _time(std::move(time)), _proof(std::move(proof)), _keyId(keyId) {}
LogicalTime getTime() const {
return _time;
@@ -55,11 +55,18 @@ public:
return _proof;
}
+ long long getKeyId() const {
+ return _keyId;
+ }
+
std::string toString() const;
+ static const SignedLogicalTime kUninitialized;
+
private:
LogicalTime _time;
TimeProof _proof;
+ long long _keyId{0};
};
} // namespace mongo