summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/parsed_update.h
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2019-01-02 10:31:29 -0500
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2019-01-04 15:53:02 -0500
commitb83813667df5d783e7f34bea069d8d586946e563 (patch)
treee4c546d4d17d9fa89088605c4067c03e73175f4d /src/mongo/db/ops/parsed_update.h
parentbd209676619a5395f849bd75334aa378527d2181 (diff)
downloadmongo-b83813667df5d783e7f34bea069d8d586946e563.tar.gz
SERVER-37829 Add Stitch library update functions
Diffstat (limited to 'src/mongo/db/ops/parsed_update.h')
-rw-r--r--src/mongo/db/ops/parsed_update.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mongo/db/ops/parsed_update.h b/src/mongo/db/ops/parsed_update.h
index f9a0896a946..5f9ba4d66fd 100644
--- a/src/mongo/db/ops/parsed_update.h
+++ b/src/mongo/db/ops/parsed_update.h
@@ -62,6 +62,14 @@ class ParsedUpdate {
public:
/**
+ * Parses the array filters portion of the update request.
+ */
+ static StatusWith<std::map<StringData, std::unique_ptr<ExpressionWithPlaceholder>>>
+ parseArrayFilters(const std::vector<BSONObj>& rawArrayFiltersIn,
+ OperationContext* opCtx,
+ CollatorInterface* collator);
+
+ /**
* Constructs a parsed update.
*
* The object pointed to by "request" must stay in scope for the life of the constructed
@@ -143,11 +151,6 @@ private:
*/
void parseUpdate();
- /**
- * Parses the array filters portion of the update request.
- */
- Status parseArrayFilters();
-
// Unowned pointer to the transactional context.
OperationContext* _opCtx;