summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.h
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2017-11-21 12:25:54 -0500
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2017-11-21 12:25:54 -0500
commit470c30273c479c5ab139de0d38e016f95c589c49 (patch)
tree1b8fa734567a6976c4980bb6ca4885b13af6ed8a /src/mongo/db/repl/oplog.h
parenta094c5b4b4783895d5fe168541bd97103a0d05f5 (diff)
downloadmongo-470c30273c479c5ab139de0d38e016f95c589c49.tar.gz
SERVER-31304: Refactor away SnapshotName.
Diffstat (limited to 'src/mongo/db/repl/oplog.h')
-rw-r--r--src/mongo/db/repl/oplog.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h
index 5076fab004e..6f773694945 100644
--- a/src/mongo/db/repl/oplog.h
+++ b/src/mongo/db/repl/oplog.h
@@ -38,7 +38,6 @@
#include "mongo/db/logical_session_id.h"
#include "mongo/db/repl/optime.h"
#include "mongo/db/repl/replication_coordinator.h"
-#include "mongo/db/storage/snapshot_name.h"
#include "mongo/stdx/functional.h"
namespace mongo {
@@ -64,8 +63,8 @@ public:
InsertStatement(StmtId statementId, BSONObj toInsert) : stmtId(statementId), doc(toInsert) {}
InsertStatement(StmtId statementId, BSONObj toInsert, OplogSlot os)
: stmtId(statementId), oplogSlot(os), doc(toInsert) {}
- InsertStatement(BSONObj toInsert, SnapshotName ts, long long term)
- : oplogSlot(repl::OpTime(Timestamp(ts.asU64()), term), 0), doc(toInsert) {}
+ InsertStatement(BSONObj toInsert, Timestamp ts, long long term)
+ : oplogSlot(repl::OpTime(ts, term), 0), doc(toInsert) {}
StmtId stmtId = kUninitializedStmtId;
OplogSlot oplogSlot;