summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/indexcatalogtests.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert.bosch@mongodb.com>2014-06-30 16:12:03 -0400
committerGeert Bosch <geert.bosch@mongodb.com>2014-07-01 10:27:12 -0400
commitef3e85d4f5b67c039668cef805459e29711aa636 (patch)
treebced88a603d39d4d6cb3dc174c2ad19f8ad7dfaf /src/mongo/dbtests/indexcatalogtests.cpp
parentf64357e485c8d46bd6fd393f7416df6117672de1 (diff)
downloadmongo-ef3e85d4f5b67c039668cef805459e29711aa636.tar.gz
SERVER-14085: Start using WriteUnitOfWork
Diffstat (limited to 'src/mongo/dbtests/indexcatalogtests.cpp')
-rw-r--r--src/mongo/dbtests/indexcatalogtests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/dbtests/indexcatalogtests.cpp b/src/mongo/dbtests/indexcatalogtests.cpp
index bf9b61cf5d3..21fb94ca24b 100644
--- a/src/mongo/dbtests/indexcatalogtests.cpp
+++ b/src/mongo/dbtests/indexcatalogtests.cpp
@@ -37,6 +37,7 @@ namespace IndexCatalogTests {
_db = ctx.ctx().db();
_coll = _db->createCollection(&txn, _ns);
_catalog = _coll->getIndexCatalog();
+ ctx.commit();
}
~IndexIteratorTests() {
@@ -44,6 +45,7 @@ namespace IndexCatalogTests {
Client::WriteContext ctx(&txn, _ns);
_db->dropCollection(&txn, _ns);
+ ctx.commit();
}
void run() {
@@ -83,6 +85,7 @@ namespace IndexCatalogTests {
}
}
+ ctx.commit();
ASSERT_TRUE(indexesIterated == _catalog->numIndexesReady());
ASSERT_TRUE(foundIndex);
}