defensive asserts

This commit is contained in:
Eliot Horowitz
2010-06-02 10:01:42 -04:00
parent 60b052f024
commit 68bcdb17fb
2 changed files with 7 additions and 3 deletions

View File

@@ -96,11 +96,13 @@ namespace mongo {
scoped_lock bl(Client::clientsMutex);
for( set<Client*>::iterator i = Client::clients.begin(); i != Client::clients.end(); i++ ) {
Client *c = *i;
assert( c );
if ( c == &me )
continue;
CurOp& co = *(c->curop());
if( all || co.active() )
vals.push_back( co.infoNoauth() );
CurOp* co = c->curop();
assert( co );
if( all || co->active() )
vals.push_back( co->infoNoauth() );
}
}
b.append("inprog", vals);