summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_rollback_test.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2019-08-16 11:17:55 -0400
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2019-08-21 11:56:14 -0400
commit8f269656dc3365d4db69d5e127279ac23b82f498 (patch)
tree1dcb6f76110ddd75d831906e2af6dcc8168ba5fc /src/mongo/db/repl/rs_rollback_test.cpp
parent561169684e8160d2f738ba94b404f14c9115dcd1 (diff)
downloadmongo-8f269656dc3365d4db69d5e127279ac23b82f498.tar.gz
SERVER-42834: Register an onRollback handler when adding a drop pending namespace.
Diffstat (limited to 'src/mongo/db/repl/rs_rollback_test.cpp')
-rw-r--r--src/mongo/db/repl/rs_rollback_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/rs_rollback_test.cpp b/src/mongo/db/repl/rs_rollback_test.cpp
index 6d1bfbda79a..6408443af27 100644
--- a/src/mongo/db/repl/rs_rollback_test.cpp
+++ b/src/mongo/db/repl/rs_rollback_test.cpp
@@ -964,7 +964,7 @@ TEST_F(RSRollbackTest, RollbackDropCollectionCommand) {
CollectionOptions options;
options.uuid = UUID::gen();
auto coll = _createCollection(_opCtx.get(), dpns, options);
- _dropPendingCollectionReaper->addDropPendingNamespace(dropTime, dpns);
+ _dropPendingCollectionReaper->addDropPendingNamespace(_opCtx.get(), dropTime, dpns);
auto commonOperation = makeOpAndRecordId(1);
auto dropCollectionOperation =
@@ -1126,7 +1126,7 @@ TEST_F(RSRollbackTest, RollbackRenameCollectionInDatabaseWithDropTargetTrueComma
CollectionOptions droppedCollOptions;
droppedCollOptions.uuid = UUID::gen();
auto droppedColl = _createCollection(_opCtx.get(), dpns, droppedCollOptions);
- _dropPendingCollectionReaper->addDropPendingNamespace(dropTime, dpns);
+ _dropPendingCollectionReaper->addDropPendingNamespace(_opCtx.get(), dropTime, dpns);
auto droppedCollectionUUID = droppedColl->uuid();
CollectionOptions renamedCollOptions;
@@ -1285,7 +1285,7 @@ TEST_F(RSRollbackTest, RollbackDropCollectionThenRenameCollectionToDroppedCollec
droppedCollOptions.uuid = UUID::gen();
auto droppedCollection = _createCollection(_opCtx.get(), dpns, droppedCollOptions);
auto droppedCollectionUUID = droppedCollection->uuid();
- _dropPendingCollectionReaper->addDropPendingNamespace(dropTime, dpns);
+ _dropPendingCollectionReaper->addDropPendingNamespace(_opCtx.get(), dropTime, dpns);
auto commonOperation = makeOpAndRecordId(1);