diff options
author | Maria van Keulen <maria@mongodb.com> | 2017-03-29 15:40:44 -0400 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2017-04-06 11:37:56 -0400 |
commit | 1cbb67b8acf6c579a8ef99f9b3bf74394bbd11c3 (patch) | |
tree | 426da6552cf3bb3315e46f925b0f3071e9979300 /src/mongo/db/introspect.cpp | |
parent | 4516cbf1786f35557fe2f2e26e2e25373aa7af83 (diff) | |
download | mongo-1cbb67b8acf6c579a8ef99f9b3bf74394bbd11c3.tar.gz |
SERVER-28543 Add OperationContext as an argument to getCollection
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r-- | src/mongo/db/introspect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp index f1e94735d5e..9ef233f11be 100644 --- a/src/mongo/db/introspect.cpp +++ b/src/mongo/db/introspect.cpp @@ -138,7 +138,7 @@ void profile(OperationContext* opCtx, NetworkOp op) { Lock::CollectionLock collLock(opCtx->lockState(), db->getProfilingNS(), MODE_IX); - Collection* const coll = db->getCollection(db->getProfilingNS()); + Collection* const coll = db->getCollection(opCtx, db->getProfilingNS()); if (coll) { WriteUnitOfWork wuow(opCtx); OpDebug* const nullOpDebug = nullptr; @@ -169,7 +169,7 @@ Status createProfileCollection(OperationContext* opCtx, Database* db) { const std::string dbProfilingNS(db->getProfilingNS()); - Collection* const collection = db->getCollection(dbProfilingNS); + Collection* const collection = db->getCollection(opCtx, dbProfilingNS); if (collection) { if (!collection->isCapped()) { return Status(ErrorCodes::NamespaceExists, |