diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2014-12-22 17:32:27 -0500 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2015-01-02 14:21:08 -0500 |
commit | 8384c878b542352ba88ecade1e675b8412f2655f (patch) | |
tree | a9b40ee6ec4fb837b99a2d3a9e37b6ece12a650c /src/mongo/dbtests/query_stage_fetch.cpp | |
parent | 8b37507dd51cdf058377a24ca0171e7fae6f2c6b (diff) | |
download | mongo-8384c878b542352ba88ecade1e675b8412f2655f.tar.gz |
SERVER-16502: make getCollection const and not require an OpContext
Diffstat (limited to 'src/mongo/dbtests/query_stage_fetch.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_fetch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/query_stage_fetch.cpp b/src/mongo/dbtests/query_stage_fetch.cpp index a827dafd570..cb13920cae6 100644 --- a/src/mongo/dbtests/query_stage_fetch.cpp +++ b/src/mongo/dbtests/query_stage_fetch.cpp @@ -89,7 +89,7 @@ namespace QueryStageFetch { void run() { Client::WriteContext ctx(&_txn, ns()); Database* db = ctx.ctx().db(); - Collection* coll = db->getCollection(&_txn, ns()); + Collection* coll = db->getCollection(ns()); if (!coll) { WriteUnitOfWork wuow(&_txn); coll = db->createCollection(&_txn, ns()); @@ -151,7 +151,7 @@ namespace QueryStageFetch { Lock::DBLock lk(_txn.lockState(), nsToDatabaseSubstring(ns()), MODE_X); Client::Context ctx(&_txn, ns()); Database* db = ctx.db(); - Collection* coll = db->getCollection(&_txn, ns()); + Collection* coll = db->getCollection(ns()); if (!coll) { WriteUnitOfWork wuow(&_txn); coll = db->createCollection(&_txn, ns()); |