summaryrefslogtreecommitdiff
path: root/db/namespace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/namespace.cpp')
-rw-r--r--db/namespace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/namespace.cpp b/db/namespace.cpp
index 7592ad32290..a63e3eae225 100644
--- a/db/namespace.cpp
+++ b/db/namespace.cpp
@@ -314,7 +314,7 @@ void NamespaceDetailsTransient::computeIndexKeys() {
NamespaceDetails *d = nsdetails(ns.c_str());
for( int i = 0; i < d->nIndexes; i++ ) {
// set<string> fields;
- d->indexes[i].key().getFieldNames(allIndexKeys);
+ d->indexes[i].keyPattern().getFieldNames(allIndexKeys);
// allIndexKeys.insert(fields.begin(),fields.end());
}
}