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:
parent
afcf141e33
commit
16697486fd
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user