diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-09-26 14:02:49 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-10-06 17:30:12 -0400 |
commit | 101e026f45dea5e9e68520238495c89a476e6172 (patch) | |
tree | bbdd3710ffc5721527ad9f5682ef0dbb4876dfee /src/mongo/dbtests/query_stage_update.cpp | |
parent | 10c86dc6cad9853514148e0ab59894a0d29353b9 (diff) | |
download | mongo-101e026f45dea5e9e68520238495c89a476e6172.tar.gz |
SERVER-14668/SERVER-15294 Collection-level locking for all read paths
Diffstat (limited to 'src/mongo/dbtests/query_stage_update.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_update.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/dbtests/query_stage_update.cpp b/src/mongo/dbtests/query_stage_update.cpp index 356045358af..2ca29438a93 100644 --- a/src/mongo/dbtests/query_stage_update.cpp +++ b/src/mongo/dbtests/query_stage_update.cpp @@ -223,8 +223,8 @@ namespace QueryStageUpdate { // Verify the contents of the resulting collection. { - Client::ReadContext ctx(&_txn, ns()); - Collection* collection = ctx.ctx().db()->getCollection(&_txn, ns()); + AutoGetCollectionForRead ctx(&_txn, ns()); + Collection* collection = ctx.getCollection(); vector<BSONObj> objs; getCollContents(collection, &objs); @@ -332,8 +332,8 @@ namespace QueryStageUpdate { // Check the contents of the collection. { - Client::ReadContext ctx(&_txn, ns()); - Collection* collection = ctx.ctx().db()->getCollection(&_txn, ns()); + AutoGetCollectionForRead ctx(&_txn, ns()); + Collection* collection = ctx.getCollection(); vector<BSONObj> objs; getCollContents(collection, &objs); |