diff options
author | Randolph Tan <randolph@10gen.com> | 2017-09-26 17:45:15 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-10-04 16:43:58 -0400 |
commit | 0ab7000e04e16813c1e1e3f131f02de102ddffba (patch) | |
tree | 07c771aa1229bc85755f952dcc9a157a8d4e2dd2 /src/mongo/db/repl/optime.h | |
parent | d6267ee66b997af73fcfb095f03f655bb61c06dc (diff) | |
download | mongo-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.h | 3 |
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; |