summaryrefslogtreecommitdiff
path: root/db/index.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-03-10 22:31:10 -0500
committerEliot Horowitz <eliot@10gen.com>2010-03-10 22:31:10 -0500
commit6ecf847f803d5f69e22f5b36121d6a4d18eb5b02 (patch)
treeb50f7522046cfca92e83675fa073771913d81dd5 /db/index.cpp
parent461ccefb2baf3f6400309f1f96d49d41b0533a7d (diff)
downloadmongo-6ecf847f803d5f69e22f5b36121d6a4d18eb5b02.tar.gz
allow re-sorting for geo searches SERVER-730
Diffstat (limited to 'db/index.cpp')
-rw-r--r--db/index.cpp5
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();
+ }
+
}