summaryrefslogtreecommitdiff
path: root/src/mongo/db/instance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r--src/mongo/db/instance.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp
index aad9da30096..ccc949ed6f0 100644
--- a/src/mongo/db/instance.cpp
+++ b/src/mongo/db/instance.cpp
@@ -489,17 +489,12 @@ namespace {
}
if ( currentOp.shouldDBProfile( debug.executionTime ) ) {
- // performance profiling is on
- if (txn->lockState()->isReadLocked()) {
- MONGO_LOG_COMPONENT(1, logComponentForOp(op))
- << "note: not profiling because recursive read lock" << endl;
- }
- else if ( lockedForWriting() ) {
+ if (lockedForWriting()) {
MONGO_LOG_COMPONENT(1, logComponentForOp(op))
<< "note: not profiling because doing fsync+lock" << endl;
}
else {
- profile(txn, c, op, currentOp);
+ profile(txn, op);
}
}