diff options
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r-- | src/mongo/db/introspect.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp index 0b3afeb947d..1359abf0375 100644 --- a/src/mongo/db/introspect.cpp +++ b/src/mongo/db/introspect.cpp @@ -162,6 +162,10 @@ namespace { WriteUnitOfWork wunit(txn); Client::Context cx(txn, currentOp.getNS(), false); if ( !_profile(txn, c, cx.db(), currentOp, profileBufBuilder ) && lk.get() ) { + if ( tryAgain ) { + // we couldn't profile, but that's ok, we should have logged already + break; + } // we took an IX lock, so now we try again with an X lock tryAgain = true; continue; |