diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-03-10 22:31:10 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-03-10 22:31:10 -0500 |
commit | 6ecf847f803d5f69e22f5b36121d6a4d18eb5b02 (patch) | |
tree | b50f7522046cfca92e83675fa073771913d81dd5 /db/index.cpp | |
parent | 461ccefb2baf3f6400309f1f96d49d41b0533a7d (diff) | |
download | mongo-6ecf847f803d5f69e22f5b36121d6a4d18eb5b02.tar.gz |
allow re-sorting for geo searches SERVER-730
Diffstat (limited to 'db/index.cpp')
-rw-r--r-- | db/index.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/index.cpp b/db/index.cpp index 777a9b0f951..c89bf9cecf6 100644 --- a/db/index.cpp +++ b/db/index.cpp @@ -435,4 +435,9 @@ namespace mongo { IndexSuitability IndexType::suitability( const BSONObj& query , const BSONObj& order ) const { return _spec->_suitability( query , order ); } + + bool IndexType::scanAndOrderRequired( const BSONObj& query , const BSONObj& order ) const { + return ! order.isEmpty(); + } + } |