summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/optime.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2017-09-26 17:45:15 -0400
committerRandolph Tan <randolph@10gen.com>2017-10-04 16:43:58 -0400
commit0ab7000e04e16813c1e1e3f131f02de102ddffba (patch)
tree07c771aa1229bc85755f952dcc9a157a8d4e2dd2 /src/mongo/db/repl/optime.h
parentd6267ee66b997af73fcfb095f03f655bb61c06dc (diff)
downloadmongo-0ab7000e04e16813c1e1e3f131f02de102ddffba.tar.gz
SERVER-31030 Use full OpTime instead of just Timestamps to refer to oplog entries
Diffstat (limited to 'src/mongo/db/repl/optime.h')
-rw-r--r--src/mongo/db/repl/optime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/repl/optime.h b/src/mongo/db/repl/optime.h
index 05ee64df110..be16e923289 100644
--- a/src/mongo/db/repl/optime.h
+++ b/src/mongo/db/repl/optime.h
@@ -149,6 +149,9 @@ public:
friend std::ostream& operator<<(std::ostream& out, const OpTime& opTime);
+ void appendAsQuery(BSONObjBuilder* builder) const;
+ BSONObj asQuery() const;
+
private:
Timestamp _timestamp;
long long _term = kInitialTerm;