summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.cpp
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2017-03-29 15:40:44 -0400
committerMaria van Keulen <maria@mongodb.com>2017-04-06 11:37:56 -0400
commit1cbb67b8acf6c579a8ef99f9b3bf74394bbd11c3 (patch)
tree426da6552cf3bb3315e46f925b0f3071e9979300 /src/mongo/db/introspect.cpp
parent4516cbf1786f35557fe2f2e26e2e25373aa7af83 (diff)
downloadmongo-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.cpp4
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,