diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-08-11 14:12:42 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-08-13 17:30:25 -0400 |
commit | e33a6c57607871f1b204bd5e1d8ea4a14ad06452 (patch) | |
tree | d82f31fde82fbb43cb4e2c5ff3aa12044c8af199 /src/mongo/db/index_builder.cpp | |
parent | 00913e47de5aced5267e44e82ac9e976bbaac089 (diff) | |
download | mongo-e33a6c57607871f1b204bd5e1d8ea4a14ad06452.tar.gz |
SERVER-13951 WUOW now takes whole OperationContext, not just RecoveryUnit
This will make it possible to implement two-phase locking.
Diffstat (limited to 'src/mongo/db/index_builder.cpp')
-rw-r--r-- | src/mongo/db/index_builder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index_builder.cpp b/src/mongo/db/index_builder.cpp index d2ba234e5ee..219a10a25b8 100644 --- a/src/mongo/db/index_builder.cpp +++ b/src/mongo/db/index_builder.cpp @@ -94,7 +94,7 @@ namespace mongo { Collection* c = db->getCollection( txn, ns ); if ( !c ) { - WriteUnitOfWork wunit(txn->recoveryUnit()); + WriteUnitOfWork wunit(txn); c = db->getOrCreateCollection( txn, ns ); verify(c); wunit.commit(); @@ -119,7 +119,7 @@ namespace mongo { status = indexer.insertAllDocumentsInCollection(); if (status.isOK()) { - WriteUnitOfWork wunit(txn->recoveryUnit()); + WriteUnitOfWork wunit(txn); indexer.commit(); wunit.commit(); } |