diff --git a/db/instance.cpp b/db/instance.cpp index ad5b17edbf1..145bfccf38a 100644 --- a/db/instance.cpp +++ b/db/instance.cpp @@ -370,8 +370,8 @@ namespace mongo { if ( currentOp.shouldDBProfile( ms ) ){ // performance profiling is on - if ( dbMutex.getState() > 1 || dbMutex.getState() < -1 ){ - mongo::log(1) << "warning: not profiling because recursive lock" << endl; + if ( dbMutex.getState() < 0 ){ + mongo::log(1) << "warning: not profiling because recursive read lock" << endl; } else { mongolock lk(true);