From 4dc41d135737dbda0a9ecc70af75687dd5df9099 Mon Sep 17 00:00:00 2001 From: Judah Schvimer Date: Thu, 15 Sep 2016 10:20:59 -0400 Subject: SERVER-26033 Allow simple range to exclude start key --- src/mongo/db/query/index_bounds_builder.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/mongo/db/query/index_bounds_builder.h') diff --git a/src/mongo/db/query/index_bounds_builder.h b/src/mongo/db/query/index_bounds_builder.h index 5d3c02e029f..b397f81b295 100644 --- a/src/mongo/db/query/index_bounds_builder.h +++ b/src/mongo/db/query/index_bounds_builder.h @@ -108,15 +108,14 @@ public: * Make a range interval from the provided object. * The object must have exactly two fields. The first field is the start, the second the * end. - * The two inclusive flags indicate whether or not the start/end fields are included in the + * The BoundInclusion indicates whether or not the start/end fields are included in the * interval (closed interval if included, open if not). */ - static Interval makeRangeInterval(const BSONObj& obj, bool startInclusive, bool endInclusive); + static Interval makeRangeInterval(const BSONObj& obj, BoundInclusion boundInclusion); static Interval makeRangeInterval(const std::string& start, const std::string& end, - bool startInclusive, - bool endInclusive); + BoundInclusion boundInclusion); /** * Make a point interval from the provided object. -- cgit v1.2.1