summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorvrachev <vlad.rachev@mongodb.com>2018-12-21 11:21:14 -0500
committervrachev <vlad.rachev@mongodb.com>2018-12-21 13:56:15 -0500
commit9e3ff3f74542c8e621934e0f44b15072ee8945be (patch)
treed82383cbfb2e5d6164f451e9fb77cf4260d13331 /src/mongo/db/curop.h
parentf54e7ff52da1d6b20d30b4f9eb5d2f7f7bf7713a (diff)
downloadmongo-9e3ff3f74542c8e621934e0f44b15072ee8945be.tar.gz
SERVER-37716 Implement internal match expression which matches a particular BinData subtype
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index a77750a39ee..5ed26b8a34e 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -246,6 +246,14 @@ public:
BSONObjBuilder* infoBuilder);
/**
+ * Serializes the fields of a GenericCursor which do not appear elsewhere in the currentOp
+ * output. If 'maxQuerySize' is given, truncates the cursor's originatingCommand but preserves
+ * the comment.
+ */
+ static BSONObj truncateAndSerializeGenericCursor(GenericCursor* cursor,
+ boost::optional<size_t> maxQuerySize);
+
+ /**
* Constructs a nested CurOp at the top of the given "opCtx"'s CurOp stack.
*/
explicit CurOp(OperationContext* opCtx);