summaryrefslogtreecommitdiff
path: root/db/curop.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/curop.h')
-rw-r--r--db/curop.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/db/curop.h b/db/curop.h
index e5d38d7..21582f2 100644
--- a/db/curop.h
+++ b/db/curop.h
@@ -108,15 +108,19 @@ namespace mongo {
Top::global.record( _ns , _op , _lockType , now - _checkpoint , _command );
_checkpoint = now;
}
-
- void reset( const sockaddr_in & remote, int op ) {
+
+ void reset(){
_reset();
_start = _checkpoint = 0;
_active = true;
_opNum = _nextOpNum++;
_ns[0] = '?'; // just in case not set later
_debug.reset();
- resetQuery();
+ resetQuery();
+ }
+
+ void reset( const sockaddr_in & remote, int op ) {
+ reset();
_remote = remote;
_op = op;
}