diff options
author | David Storch <david.storch@10gen.com> | 2017-05-23 19:32:11 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2017-05-30 10:23:43 -0400 |
commit | a702053750a5a17071e539fc29910809881ad7c7 (patch) | |
tree | 4771179e617cc647d289539522b71d70592e82f9 /src/mongo/db/matcher/expression_algo.cpp | |
parent | a24c0780aed84a78dfa1634ae7d81f8b20bc0d68 (diff) | |
download | mongo-a702053750a5a17071e539fc29910809881ad7c7.tar.gz |
SERVER-27115 Allow $match to swap across renames expressed using $map.
Diffstat (limited to 'src/mongo/db/matcher/expression_algo.cpp')
-rw-r--r-- | src/mongo/db/matcher/expression_algo.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/matcher/expression_algo.cpp b/src/mongo/db/matcher/expression_algo.cpp index a648d1a4b28..12fe0224258 100644 --- a/src/mongo/db/matcher/expression_algo.cpp +++ b/src/mongo/db/matcher/expression_algo.cpp @@ -431,12 +431,6 @@ std::pair<unique_ptr<MatchExpression>, unique_ptr<MatchExpression>> splitMatchEx unique_ptr<MatchExpression> expr, const std::set<std::string>& fields, const StringMap<std::string>& renames) { - // TODO SERVER-27115: Currently renames from dotted fields are not supported, but this - // restriction can be relaxed. - for (auto&& rename : renames) { - invariant(rename.second.find('.') == std::string::npos); - } - auto splitExpr = splitMatchExpressionByWithoutRenames(std::move(expr), fields); if (splitExpr.first) { applyRenamesToExpression(splitExpr.first.get(), renames); |