Skip to content

Commit

Permalink
fix active in curop
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Jul 7, 2011
1 parent b82b1a1 commit 10d2d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/client.cpp
Expand Up @@ -390,7 +390,7 @@ namespace mongo {
BSONObj CurOp::infoNoauth() { BSONObj CurOp::infoNoauth() {
BSONObjBuilder b; BSONObjBuilder b;
b.append("opid", _opNum); b.append("opid", _opNum);
bool a = _active && _start; bool a = _active && ( _start || _waitingForLock );
b.append("active", a); b.append("active", a);
if ( _lockType ) if ( _lockType )
b.append("lockType" , _lockType > 0 ? "write" : "read" ); b.append("lockType" , _lockType > 0 ? "write" : "read" );
Expand Down

0 comments on commit 10d2d10

Please sign in to comment.