summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_path.h
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2017-09-09 11:38:46 -0400
committerJames Wahlin <james@mongodb.com>2017-09-10 20:16:34 -0400
commitd0f5e2b103a5f78967c460533f4f8850f02facd6 (patch)
tree285e0bf71e74d114c2255534f8a17e69cf7c1f0a /src/mongo/db/matcher/expression_path.h
parent820abe30691f09011183b63ab63cb1e9c43f3d9e (diff)
downloadmongo-d0f5e2b103a5f78967c460533f4f8850f02facd6.tar.gz
SERVER-30951 Add top-level $expr to MatchExpression
Diffstat (limited to 'src/mongo/db/matcher/expression_path.h')
-rw-r--r--src/mongo/db/matcher/expression_path.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression_path.h b/src/mongo/db/matcher/expression_path.h
index 41c8a0addf7..6c45a9ea04d 100644
--- a/src/mongo/db/matcher/expression_path.h
+++ b/src/mongo/db/matcher/expression_path.h
@@ -85,6 +85,13 @@ public:
return Status::OK();
}
+protected:
+ void _doAddDependencies(DepsTracker* deps) const final {
+ if (!_path.empty()) {
+ deps->fields.insert(_path.toString());
+ }
+ }
+
private:
StringData _path;
ElementPath _elementPath;