summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2014-08-12 11:43:50 -0400
committerJason Rassi <rassi@10gen.com>2014-08-12 11:45:57 -0400
commit89d34fd3eb9b21dab1243363e14f5f5ef6a430ff (patch)
treef0bf6f2f60e46b322ef471cc1ef2f706af89bac9
parent98eb2f1dd5e9577db16f2f109b0d8b5b9d56552c (diff)
downloadmongo-89d34fd3eb9b21dab1243363e14f5f5ef6a430ff.tar.gz
SERVER-14833 Fix issue where 98eb2f1d broke text index spec rewrite
-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;