summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_bounds_builder_test.cpp
diff options
context:
space:
mode:
authorMarko Vojvodic <marko.vojvodic@mongodb.com>2016-10-28 14:10:09 -0400
committerMarko Vojvodic <marko.vojvodic@mongodb.com>2016-11-07 11:37:15 -0500
commit8f769688f5b8ca6fa11e07d02600dbbb50178cff (patch)
treec300ea4cd710c19a2922a0ca512d805d12e2e10b /src/mongo/db/query/index_bounds_builder_test.cpp
parentf5c613f11f170cadd4b698d108b3c7b636913568 (diff)
downloadmongo-8f769688f5b8ca6fa11e07d02600dbbb50178cff.tar.gz
SERVER-26672 Generate exact bounds for timestamps in index bounds builder
This commit also replaces BSONElement::isSimpleType with Indexability::isExactBoundsGenerating, since the isSimpleType construct was only used within the query system.
Diffstat (limited to 'src/mongo/db/query/index_bounds_builder_test.cpp')
-rw-r--r--src/mongo/db/query/index_bounds_builder_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/index_bounds_builder_test.cpp b/src/mongo/db/query/index_bounds_builder_test.cpp
index c894de8360e..45f11a2cc1d 100644
--- a/src/mongo/db/query/index_bounds_builder_test.cpp
+++ b/src/mongo/db/query/index_bounds_builder_test.cpp
@@ -301,7 +301,7 @@ TEST(IndexBoundsBuilderTest, TranslateGtTimestamp) {
fromjson("{'': Timestamp(2, 3), '': Timestamp(4294967295, 4294967295)}"),
false,
true)));
- ASSERT_EQUALS(tightness, IndexBoundsBuilder::INEXACT_FETCH);
+ ASSERT_EQUALS(tightness, IndexBoundsBuilder::EXACT);
}
TEST(IndexBoundsBuilderTest, TranslateGtNumber) {