diff options
author | Geert Bosch <geert@mongodb.com> | 2014-10-07 12:13:21 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2014-10-09 18:21:06 -0400 |
commit | 5ea4221f81e7af9272e4e687d516bb439ef29498 (patch) | |
tree | 8bfee151ed5a434935681e17a9f6e26a8c080a33 /src/mongo/dbtests/indexupdatetests.cpp | |
parent | ff10cf8c748997338f51de2de61520e17518758c (diff) | |
download | mongo-5ea4221f81e7af9272e4e687d516bb439ef29498.tar.gz |
SERVER-14668: Collection level locking for update path
Temporarily disable collection locking for MMAPv1.
Diffstat (limited to 'src/mongo/dbtests/indexupdatetests.cpp')
-rw-r--r-- | src/mongo/dbtests/indexupdatetests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/indexupdatetests.cpp b/src/mongo/dbtests/indexupdatetests.cpp index 1e9e3a520b1..28d1d707289 100644 --- a/src/mongo/dbtests/indexupdatetests.cpp +++ b/src/mongo/dbtests/indexupdatetests.cpp @@ -65,7 +65,7 @@ namespace IndexUpdateTests { getGlobalEnvironment()->unsetKillAllOperations(); } Collection* collection() { - return _ctx.ctx().db()->getCollection( &_txn, _ns ); + return _ctx.getCollection(); } protected: // QUERY_MIGRATION @@ -663,7 +663,9 @@ namespace IndexUpdateTests { memcpy( infoRecord->data(), indexInfo.objdata(), indexInfo.objsize() ); addRecordToRecListInExtent( infoRecord, infoLoc ); - return new IndexCatalog::IndexBuildBlock( _ctx.ctx().db()->getCollection( _ns )->getIndexCatalog(), name, infoLoc ); + return new IndexCatalog::IndexBuildBlock( _ctx.getCollection()->getIndexCatalog(), + name, + infoLoc ); } }; #endif |