fix recursive read lock with profiling

This commit is contained in:
Eliot Horowitz
2010-02-05 01:09:56 -05:00
parent 52427e60eb
commit dff4eb0fa3

View File

@@ -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);