Permalink
Browse files

fix active in curop

  • Loading branch information...
1 parent 27d16a2 commit 74bb5b66f9765937a4af2cdfd5ce0159d602b93a @erh erh committed Jul 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/client.cpp
View
@@ -318,7 +318,7 @@ namespace mongo {
BSONObj CurOp::infoNoauth() {
BSONObjBuilder b;
b.append("opid", _opNum);
- bool a = _active && _start;
+ bool a = _active && ( _start || _waitingForLock );
b.append("active", a);
if ( _lockType )
b.append("lockType" , _lockType > 0 ? "write" : "read" );

0 comments on commit 74bb5b6

Please sign in to comment.