diff options
author | Geert Bosch <geert.bosch@mongodb.com> | 2014-06-30 16:12:03 -0400 |
---|---|---|
committer | Geert Bosch <geert.bosch@mongodb.com> | 2014-07-01 10:27:12 -0400 |
commit | ef3e85d4f5b67c039668cef805459e29711aa636 (patch) | |
tree | bced88a603d39d4d6cb3dc174c2ad19f8ad7dfaf /src/mongo/dbtests/dbhelper_tests.cpp | |
parent | f64357e485c8d46bd6fd393f7416df6117672de1 (diff) | |
download | mongo-ef3e85d4f5b67c039668cef805459e29711aa636.tar.gz |
SERVER-14085: Start using WriteUnitOfWork
Diffstat (limited to 'src/mongo/dbtests/dbhelper_tests.cpp')
-rw-r--r-- | src/mongo/dbtests/dbhelper_tests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/dbtests/dbhelper_tests.cpp b/src/mongo/dbtests/dbhelper_tests.cpp index 88c04aece66..33d190ed34c 100644 --- a/src/mongo/dbtests/dbhelper_tests.cpp +++ b/src/mongo/dbtests/dbhelper_tests.cpp @@ -61,6 +61,7 @@ namespace mongo { { // Remove _id range [_min, _max). Lock::DBWrite lk(txn.lockState(), ns); + WriteUnitOfWork wunit(txn.recoveryUnit()); Client::Context ctx(&txn, ns ); KeyRange range( ns, @@ -68,6 +69,7 @@ namespace mongo { BSON( "_id" << _max ), BSON( "_id" << 1 ) ); Helpers::removeRange( &txn, range ); + wunit.commit(); } // Check that the expected documents remain. |