diff options
author | William Schultz <william.schultz@mongodb.com> | 2018-02-21 15:07:08 -0500 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2018-02-21 15:24:39 -0500 |
commit | 52372481401a83cdac66a1f71b70ba622508d694 (patch) | |
tree | 7e5b6ee0444401caeba8be0a5b91449b9d72c8d0 /src/mongo | |
parent | ec7388d752dffb6b28d502aa01baf12a942d3700 (diff) | |
download | mongo-52372481401a83cdac66a1f71b70ba622508d694.tar.gz |
SERVER-29933 Fix argument type in rollback_impl_test
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/repl/rollback_impl_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/rollback_impl_test.cpp b/src/mongo/db/repl/rollback_impl_test.cpp index d9ae355dc0f..71f56ecc8e7 100644 --- a/src/mongo/db/repl/rollback_impl_test.cpp +++ b/src/mongo/db/repl/rollback_impl_test.cpp @@ -484,7 +484,7 @@ public: return _rollback->runRollback(_opCtx.get()); } - BSONObj makeSessionOp(NamespaceString nss, UUID sessionId, long txnNum) { + BSONObj makeSessionOp(NamespaceString nss, UUID sessionId, TxnNumber txnNum) { auto uuid = UUID::gen(); BSONObjBuilder bob; bob.append("ts", Timestamp(2, 1)); @@ -797,7 +797,7 @@ TEST_F(RollbackImplObserverInfoTest, RollbackRecordsSessionIdFromOplogEntry) { NamespaceString nss("test.coll"); auto sessionId = UUID::gen(); - auto sessionOpObj = makeSessionOp(nss, sessionId, 1); + auto sessionOpObj = makeSessionOp(nss, sessionId, 1L); auto sessionOp = std::make_pair(sessionOpObj, RecordId(recordId)); // Run the rollback and make sure the correct session id was recorded. @@ -824,7 +824,7 @@ TEST_F(RollbackImplObserverInfoTest, RollbackRecordsSessionIdFromApplyOpsSubOp) NamespaceString nss("test.coll"); auto sessionId = UUID::gen(); - auto sessionOpObj = makeSessionOp(nss, sessionId, 1); + auto sessionOpObj = makeSessionOp(nss, sessionId, 1L); // Create the applyOps command object. BSONArrayBuilder subops; |