summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/op_observer_impl_test.cpp')
-rw-r--r--src/mongo/db/op_observer_impl_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/op_observer_impl_test.cpp b/src/mongo/db/op_observer_impl_test.cpp
index 37449d5f177..cc62f5dfbe1 100644
--- a/src/mongo/db/op_observer_impl_test.cpp
+++ b/src/mongo/db/op_observer_impl_test.cpp
@@ -195,7 +195,8 @@ TEST_F(OpObserverTest, OnDropCollectionReturnsDropOpTime) {
{
AutoGetDb autoDb(opCtx.get(), nss.db(), MODE_X);
WriteUnitOfWork wunit(opCtx.get());
- dropOpTime = opObserver.onDropCollection(opCtx.get(), nss, uuid);
+ opObserver.onDropCollection(opCtx.get(), nss, uuid);
+ dropOpTime = OpObserver::Times::get(opCtx.get()).reservedOpTimes.front();
wunit.commit();
}
@@ -229,8 +230,9 @@ TEST_F(OpObserverTest, OnRenameCollectionReturnsRenameOpTime) {
{
AutoGetDb autoDb(opCtx.get(), sourceNss.db(), MODE_X);
WriteUnitOfWork wunit(opCtx.get());
- renameOpTime = opObserver.onRenameCollection(
+ opObserver.onRenameCollection(
opCtx.get(), sourceNss, targetNss, {}, dropTarget, {}, stayTemp);
+ renameOpTime = OpObserver::Times::get(opCtx.get()).reservedOpTimes.front();
wunit.commit();
}