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 | |
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')
-rw-r--r-- | src/mongo/db/index/btree_based_bulk_access_method.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index/btree_based_bulk_access_method.cpp b/src/mongo/db/index/btree_based_bulk_access_method.cpp index 03372363011..1a31b744012 100644 --- a/src/mongo/db/index/btree_based_bulk_access_method.cpp +++ b/src/mongo/db/index/btree_based_bulk_access_method.cpp @@ -130,7 +130,7 @@ namespace mongo { scoped_ptr<SortedDataBuilderInterface> builder; { - WriteUnitOfWork wunit(_txn->recoveryUnit()); + WriteUnitOfWork wunit(_txn); if (_isMultiKey) { _real->_btreeState->setMultikey( _txn ); @@ -144,7 +144,7 @@ namespace mongo { if (mayInterrupt) _txn->checkForInterrupt(/*heedMutex*/ false); - WriteUnitOfWork wunit(_txn->recoveryUnit()); + WriteUnitOfWork wunit(_txn); // Get the next datum and add it to the builder. BSONObjExternalSorter::Data d = i->next(); |