summaryrefslogtreecommitdiff
path: root/src/mongo/db/index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index.cpp')
-rw-r--r--src/mongo/db/index.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/index.cpp b/src/mongo/db/index.cpp
index 294629dd945..81bab1ecb0b 100644
--- a/src/mongo/db/index.cpp
+++ b/src/mongo/db/index.cpp
@@ -431,6 +431,7 @@ namespace mongo {
BSONObj o = io;
if ( plugin ) {
o = plugin->adjustIndexSpec(o);
+ key = o.getObjectField("key");
}
BSONObjBuilder b;
int v = DefaultIndexVersionNumber;