summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorJ. Rassi <rassi@10gen.com>2016-05-25 14:50:50 -0400
committerJ. Rassi <rassi@10gen.com>2016-05-27 14:02:55 -0400
commitf93ad728e94b6813c242faac43d4b57a07a3c319 (patch)
treeb24ef5d0a74ba1c166c314d49d2054a5b0b37d45 /src/mongo/db/commands
parent1898c4eac3124a6d32de1d2c13d7f6d05b1b538b (diff)
downloadmongo-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.cpp5
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());
}