diff options
author | J. Rassi <rassi@10gen.com> | 2016-05-25 14:50:50 -0400 |
---|---|---|
committer | J. Rassi <rassi@10gen.com> | 2016-05-27 14:02:55 -0400 |
commit | f93ad728e94b6813c242faac43d4b57a07a3c319 (patch) | |
tree | b24ef5d0a74ba1c166c314d49d2054a5b0b37d45 /src/mongo/db/commands | |
parent | 1898c4eac3124a6d32de1d2c13d7f6d05b1b538b (diff) | |
download | mongo-f93ad728e94b6813c242faac43d4b57a07a3c319.tar.gz |
SERVER-23611 Refactor InMatchExpression
Includes deletion of the ArrayFilterEntries class.
This is groundwork for implementing InMatchExpression::setCollator().
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/list_collections.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/commands/list_collections.cpp b/src/mongo/db/commands/list_collections.cpp index ae5dcbe5fea..a6e2174eebf 100644 --- a/src/mongo/db/commands/list_collections.cpp +++ b/src/mongo/db/commands/list_collections.cpp @@ -84,10 +84,9 @@ boost::optional<vector<StringData>> _getExactNameMatches(const MatchExpression* } } else if (matchType == MatchExpression::MATCH_IN) { auto matchIn = checked_cast<const InMatchExpression*>(matcher); - const ArrayFilterEntries& entries = matchIn->getData(); - if (matchIn->path() == "name" && entries.numRegexes() == 0) { + if (matchIn->path() == "name" && matchIn->getRegexes().empty()) { vector<StringData> exactMatches; - for (auto&& elem : entries.equalities()) { + for (auto&& elem : matchIn->getEqualities()) { if (elem.type() == String) { exactMatches.push_back(elem.valueStringData()); } |