summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_selection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_selection.cpp')
-rw-r--r--src/mongo/db/index_selection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/index_selection.cpp b/src/mongo/db/index_selection.cpp
index 431d51f8e0a..523106d25cf 100644
--- a/src/mongo/db/index_selection.cpp
+++ b/src/mongo/db/index_selection.cpp
@@ -28,9 +28,10 @@ namespace mongo {
const FieldRangeSet& queryConstraints,
const BSONObj& order) {
- string type = CatalogHack::findPluginName(keyPattern);
+ string type = CatalogHack::getAccessMethodName(keyPattern);
BSONObj query = queryConstraints.originalQuery();
+ // "" means it's a b-tree index, ascending or descending.
if ("" == type) {
// This is a quick first pass to determine the suitability of the index. It produces
// some false positives (returns HELPFUL for some indexes which are not particularly).