summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.h
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2019-03-29 21:52:05 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2019-04-09 13:26:49 -0400
commit8cdc51e7810f7fd8898a4c60b935e389f04659ee (patch)
tree054f0b5edf0b462cfed30288ef12d5716f16be3d /src/mongo/db/repl/oplog.h
parentba963c9a88eda87942926e6b17901f8c00bd46d0 (diff)
downloadmongo-8cdc51e7810f7fd8898a4c60b935e389f04659ee.tar.gz
SERVER-40508 Remove hash from OplogSlot and make OplogSlot an alias for OpTime.r4.1.10
Diffstat (limited to 'src/mongo/db/repl/oplog.h')
-rw-r--r--src/mongo/db/repl/oplog.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h
index 694d5c38152..d9fa2c8bf74 100644
--- a/src/mongo/db/repl/oplog.h
+++ b/src/mongo/db/repl/oplog.h
@@ -51,12 +51,7 @@ class OperationContext;
class OperationSessionInfo;
class Session;
-struct OplogSlot {
- OplogSlot() {}
- OplogSlot(repl::OpTime opTime, std::int64_t hash) : opTime(opTime), hash(hash) {}
- repl::OpTime opTime;
- std::int64_t hash = 0;
-};
+using OplogSlot = repl::OpTime;
struct InsertStatement {
public:
@@ -67,7 +62,7 @@ public:
InsertStatement(StmtId statementId, BSONObj toInsert, OplogSlot os)
: stmtId(statementId), oplogSlot(os), doc(toInsert) {}
InsertStatement(BSONObj toInsert, Timestamp ts, long long term)
- : oplogSlot(repl::OpTime(ts, term), 0), doc(toInsert) {}
+ : oplogSlot(repl::OpTime(ts, term)), doc(toInsert) {}
StmtId stmtId = kUninitializedStmtId;
OplogSlot oplogSlot;