summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.cpp
diff options
context:
space:
mode:
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 9ef233f11be..f3d6680b242 100644
--- a/src/mongo/db/introspect.cpp
+++ b/src/mongo/db/introspect.cpp
@@ -122,7 +122,7 @@ void profile(OperationContext* opCtx, NetworkOp op) {
if (acquireDbXLock) {
autoGetDb.reset(new AutoGetDb(opCtx, dbName, MODE_X));
if (autoGetDb->getDb()) {
- createProfileCollection(opCtx, autoGetDb->getDb());
+ createProfileCollection(opCtx, autoGetDb->getDb()).transitional_ignore();
}
} else {
autoGetDb.reset(new AutoGetDb(opCtx, dbName, MODE_IX));
@@ -142,7 +142,7 @@ void profile(OperationContext* opCtx, NetworkOp op) {
if (coll) {
WriteUnitOfWork wuow(opCtx);
OpDebug* const nullOpDebug = nullptr;
- coll->insertDocument(opCtx, p, nullOpDebug, false);
+ coll->insertDocument(opCtx, p, nullOpDebug, false).transitional_ignore();
wuow.commit();
break;