summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_bounds_builder_test.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-01-09 14:20:37 -0500
committerDavid Storch <david.storch@10gen.com>2015-01-16 17:13:32 -0500
commitc3da2fc6642f143111d104c871f420d523f949b5 (patch)
tree830de681c8759e9d7cbdc6ec4b055dfa5c6bf947 /src/mongo/db/query/index_bounds_builder_test.cpp
parent020cc851f48cca51ba2ac6c94ca93119a4563c4f (diff)
downloadmongo-c3da2fc6642f143111d104c871f420d523f949b5.tar.gz
SERVER-15802 if an equality over a single-field unique index can be used to index an AND, ignore all other indices
Diffstat (limited to 'src/mongo/db/query/index_bounds_builder_test.cpp')
-rw-r--r--src/mongo/db/query/index_bounds_builder_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/index_bounds_builder_test.cpp b/src/mongo/db/query/index_bounds_builder_test.cpp
index accf74f06fa..e82c130b278 100644
--- a/src/mongo/db/query/index_bounds_builder_test.cpp
+++ b/src/mongo/db/query/index_bounds_builder_test.cpp
@@ -495,8 +495,9 @@ namespace {
TEST(IndexBoundsBuilderTest, ExistsTrueSparse) {
IndexEntry testIndex = IndexEntry(BSONObj(),
- false,
- true,
+ false, // multikey
+ true, // sparse
+ false, // unique
"exists_true_sparse",
BSONObj());
BSONObj obj = fromjson("{a: {$exists: true}}");