summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/indexupdatetests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/indexupdatetests.cpp')
-rw-r--r--src/mongo/dbtests/indexupdatetests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/indexupdatetests.cpp b/src/mongo/dbtests/indexupdatetests.cpp
index 3e4d4566b25..6698efe287f 100644
--- a/src/mongo/dbtests/indexupdatetests.cpp
+++ b/src/mongo/dbtests/indexupdatetests.cpp
@@ -101,7 +101,7 @@ namespace IndexUpdateTests {
uassertStatusOK(indexer.init(key));
uassertStatusOK(indexer.insertAllDocumentsInCollection());
- WriteUnitOfWork wunit(_txn.recoveryUnit());
+ WriteUnitOfWork wunit(&_txn);
indexer.commit();
wunit.commit();
}
@@ -360,7 +360,7 @@ namespace IndexUpdateTests {
ASSERT_OK(indexer.init(spec));
ASSERT_OK(indexer.insertAllDocumentsInCollection());
- WriteUnitOfWork wunit(_txn.recoveryUnit());
+ WriteUnitOfWork wunit(&_txn);
indexer.commit();
wunit.commit();
}
@@ -589,7 +589,7 @@ namespace IndexUpdateTests {
class HelpersEnsureIndexInterruptDisallowed : public IndexBuildBase {
public:
void run() {
- WriteUnitOfWork wunit (_txn.recoveryUnit());
+ WriteUnitOfWork wunit (&_txn);
// Insert some documents.
int32_t nDocs = 1000;
for( int32_t i = 0; i < nDocs; ++i ) {