diff options
author | Ian Boros <ian.boros@mongodb.com> | 2020-01-28 19:11:56 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-28 19:11:56 +0000 |
commit | ccc13ef0b7ce0f908479522660a54dcbd142f7a1 (patch) | |
tree | c8466e928795086932bac2825d84d6f98106844b /src/mongo/db/query/index_bounds.h | |
parent | 60282a8880a63920d376f358e0352051136383dc (diff) | |
download | mongo-ccc13ef0b7ce0f908479522660a54dcbd142f7a1.tar.gz |
SERVER-31898 Allow multikey indexes to provide sorts in certain cases
Diffstat (limited to 'src/mongo/db/query/index_bounds.h')
-rw-r--r-- | src/mongo/db/query/index_bounds.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/query/index_bounds.h b/src/mongo/db/query/index_bounds.h index 513e22335f1..c1964415edd 100644 --- a/src/mongo/db/query/index_bounds.h +++ b/src/mongo/db/query/index_bounds.h @@ -84,6 +84,11 @@ struct OrderedIntervalList { OrderedIntervalList reverseClone() const; Interval::Direction computeDirection() const; + + /** + * Returns true if this OIL represents a single [MinKey, MaxKey] bound. + */ + bool isMinToMax() const; }; /** |