diff options
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); |