0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

CurOp::isStarted accessor

This commit is contained in:
Eliot Horowitz 2011-03-06 15:22:04 -05:00
parent afcf141e33
commit 16697486fd

View File

@ -142,6 +142,8 @@ namespace mongo {
if ( _start == 0 )
_start = _checkpoint = curTimeMicros64();
}
bool isStarted() const { return _start > 0; }
void enter( Client::Context * context ) {
ensureStarted();
setNS( context->ns() );