summaryrefslogtreecommitdiff
path: root/src/mongo/db/querypattern.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-01-12 18:29:48 -0800
committerAaron <aaron@10gen.com>2012-01-18 17:31:06 -0800
commit7a8179149684663c066a90757f32d91a174725a8 (patch)
tree6d16e716c823dc3080806c2eb18516a080b9a3c1 /src/mongo/db/querypattern.cpp
parentb15003971f1957060a6ebf7a34fcb75fd89e6ba8 (diff)
downloadmongo-7a8179149684663c066a90757f32d91a174725a8.tar.gz
SERVER-4556 remove concept of a 'nontrivial' range in FieldRange; use 'universal' range instead
Diffstat (limited to 'src/mongo/db/querypattern.cpp')
-rw-r--r--src/mongo/db/querypattern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/querypattern.cpp b/src/mongo/db/querypattern.cpp
index 8161113845b..56b8c9db1ad 100644
--- a/src/mongo/db/querypattern.cpp
+++ b/src/mongo/db/querypattern.cpp
@@ -27,7 +27,7 @@ namespace mongo {
else if ( i->second.empty() ) {
_fieldTypes[ i->first ] = QueryPattern::Empty;
}
- else if ( i->second.nontrivial() ) {
+ else if ( !i->second.universal() ) {
bool upper = i->second.max().type() != MaxKey;
bool lower = i->second.min().type() != MinKey;
if ( upper && lower )