summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/repltests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/repltests.cpp')
-rw-r--r--src/mongo/dbtests/repltests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/repltests.cpp b/src/mongo/dbtests/repltests.cpp
index c013594f4da..7d036168084 100644
--- a/src/mongo/dbtests/repltests.cpp
+++ b/src/mongo/dbtests/repltests.cpp
@@ -77,6 +77,7 @@ namespace ReplTests {
createOplog(&_txn);
Client::WriteContext ctx(&_txn, ns());
+ WriteUnitOfWork wuow(&_txn);
Collection* c = ctx.ctx().db()->getCollection(&_txn, ns());
if ( ! c ) {
@@ -84,7 +85,7 @@ namespace ReplTests {
}
ASSERT(c->getIndexCatalog()->haveIdIndex(&_txn));
- ctx.commit();
+ wuow.commit();
}
~Base() {
try {