diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-07-07 16:05:06 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-07-07 17:39:54 -0400 |
commit | 419a2e4eaf791a8d217050dbf0ca63149f261e0f (patch) | |
tree | ba9c00ba775f0cae95cdf16e75a1ac65e7b05cc1 /src/mongo/db/query/query_settings.h | |
parent | 60af078e700d68999621dcd511f09220ab4d1892 (diff) | |
download | mongo-419a2e4eaf791a8d217050dbf0ca63149f261e0f.tar.gz |
SERVER-23882 Collation should be considered part of a query's shape
Diffstat (limited to 'src/mongo/db/query/query_settings.h')
-rw-r--r-- | src/mongo/db/query/query_settings.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/query/query_settings.h b/src/mongo/db/query/query_settings.h index e1125320471..dbf3f1a19bc 100644 --- a/src/mongo/db/query/query_settings.h +++ b/src/mongo/db/query/query_settings.h @@ -61,7 +61,7 @@ public: /** * Value type for query settings. * Holds: - * query shape (query, sort, projection) + * query shape (query, sort, projection, collation) * vector of index specs */ class AllowedIndexEntry { @@ -72,15 +72,17 @@ public: AllowedIndexEntry(const BSONObj& query, const BSONObj& sort, const BSONObj& projection, + const BSONObj& collation, const std::vector<BSONObj>& indexKeyPatterns); ~AllowedIndexEntry(); AllowedIndexEntry* clone() const; - // _query, _sort and _projection collectively - // represent the query shape that we are storing hint overrides for. + // query, sort, projection, and collation collectively represent the query shape that we are + // storing hint overrides for. BSONObj query; BSONObj sort; BSONObj projection; + BSONObj collation; // These are the index key patterns that // we will use to override the indexes retrieved from |