summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-05-29 13:50:42 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-06-05 14:21:56 -0400
commitf4ca1b7eb3850719049d938b4b4562b6324ec284 (patch)
treeee6b74b1321a5f8ee622bad55e9d959442d9e6e5 /src/mongo/db/curop.h
parent51c2064d518140fbeae62f9d7ba29f1d69fb530f (diff)
downloadmongo-f4ca1b7eb3850719049d938b4b4562b6324ec284.tar.gz
SERVER-18277 Get references to the Top object out of CurOp.
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 19a307b2288..2067f1d7af5 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -269,6 +269,11 @@ namespace mongo {
*/
int getOp() const { return _op; }
+ /**
+ * Returns true if the current operation is known to be a command.
+ */
+ bool isCommand() const { return _isCommand; }
+
//
// Methods for controlling CurOp "max time".
//
@@ -368,8 +373,6 @@ namespace mongo {
long long getExpectedLatencyMs() const { return _expectedLatencyMs; }
void setExpectedLatencyMs( long long latency ) { _expectedLatencyMs = latency; }
- void recordGlobalTime(bool isWriteLocked, long long micros) const;
-
/**
* this should be used very sparingly
* generally the Context should set this up