summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2017-07-07 04:47:07 +0100
committerBernard Gorman <bernard.gorman@gmail.com>2017-07-07 14:38:34 +0100
commit2b198988a626df6f36c9e606b08b266c462cceb4 (patch)
tree56c3cb97ea71d8b617d39b3af678276e55d07b7b /src/mongo/db/curop.h
parent286717ae5aa0c5a83ea8bf49b75158ae4af0b857 (diff)
downloadmongo-2b198988a626df6f36c9e606b08b266c462cceb4.tar.gz
SERVER-19318 Reimplement the currentOp command as a $currentOp aggregation
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index bb1f82b1a5d..cec51830967 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -382,12 +382,14 @@ public:
Command::ReadWriteType getReadWriteType() const;
/**
- * Appends information about this CurOp to "builder".
+ * Appends information about this CurOp to "builder". If "truncateOps" is true, appends a string
+ * summary of any objects which exceed the threshold size. If truncateOps is false, append the
+ * entire object.
*
* If called from a thread other than the one executing the operation associated with this
* CurOp, it is necessary to lock the associated Client object before executing this method.
*/
- void reportState(BSONObjBuilder* builder);
+ void reportState(BSONObjBuilder* builder, bool truncateOps = false);
/**
* Sets the message and the progress meter for this CurOp.