diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-02-22 16:44:33 -0500 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-02-28 10:06:12 -0500 |
commit | 0501a56bfbb9a3b7d88a9b57e371de44afe02564 (patch) | |
tree | 38d0fc418b447f30c6d752f57226c81bce7cb16b /src/mongo/db/matcher/expression_array.h | |
parent | 602a80c2b9745234daebb21dbdd81a456713cf33 (diff) | |
download | mongo-0501a56bfbb9a3b7d88a9b57e371de44afe02564.tar.gz |
SERVER-27904 Extend support for moving predicates into contained ORs to multikey indexes
Diffstat (limited to 'src/mongo/db/matcher/expression_array.h')
-rw-r--r-- | src/mongo/db/matcher/expression_array.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression_array.h b/src/mongo/db/matcher/expression_array.h index 0ade4faeab0..0920467c3bf 100644 --- a/src/mongo/db/matcher/expression_array.h +++ b/src/mongo/db/matcher/expression_array.h @@ -96,6 +96,14 @@ public: return _sub.get(); } + std::unique_ptr<MatchExpression> releaseChild() { + return std::move(_sub); + } + + void resetChild(std::unique_ptr<MatchExpression> newChild) { + _sub = std::move(newChild); + } + private: std::unique_ptr<MatchExpression> _sub; }; |