summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-03-14 10:53:33 -0400
committerEliot Horowitz <eliot@10gen.com>2014-03-14 10:53:33 -0400
commit317cb98a19baa2e9731c735ee223a746b60bb334 (patch)
tree2ffb04e5da3966c7bb1c41d4c4615146e72ebbf2
parentfce1d8d0932775d6106e1ca9b17ae7bde15a2c74 (diff)
downloadmongo-317cb98a19baa2e9731c735ee223a746b60bb334.tar.gz
SERVER-12662: fix index name creation
-rw-r--r--src/mongo/db/index.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index.cpp b/src/mongo/db/index.cpp
index 9ce80e6deba..e4366977081 100644
--- a/src/mongo/db/index.cpp
+++ b/src/mongo/db/index.cpp
@@ -444,7 +444,7 @@ namespace mongo {
b.append("key", id_obj);
}
else {
- b.append( "name", o["name"] );
+ b.append( o["name"] );
b.append(o["key"]);
}
if( o["unique"].trueValue() )