summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-05-27 18:46:39 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-06-04 12:58:43 -0400
commit8c0cb681459834433c9d467fbfa51bdadc9f42fd (patch)
treeafb5003df73de9c3583a9619066c870c3fdc5c68 /src/mongo/db/curop.h
parentb3d48bd2c0ebba67f32aca2679077543378b20ab (diff)
downloadmongo-8c0cb681459834433c9d467fbfa51bdadc9f42fd.tar.gz
SERVER-18277 Stop using OldClientContext in BatchExecutor.
This simplifies the interaction between write commands and the curop structure.
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 03467cd0cb9..07f0c7a024b 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -222,6 +222,12 @@ namespace mongo {
return _dbprofile >= 2 || ms >= serverGlobalParams.slowMS;
}
+ /**
+ * Raises the profiling level for this operation to "dbProfileLevel" if it was previously
+ * less than "dbProfileLevel".
+ */
+ void raiseDbProfileLevel(int dbProfileLevel);
+
int getOp() const { return _op; }
//