summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-09-14 22:51:16 -0400
committerEliot Horowitz <eliot@10gen.com>2011-09-14 22:51:16 -0400
commit692f4ec8dfbb75c5d2f5a28b70231f8f95d4b95e (patch)
treefc24cd3b17909b3d57b95a6e91ae8f0ddb0bb25f /db
parentade41dcba82cff6ea004d9252ecf90b6a6d0443f (diff)
downloadmongo-692f4ec8dfbb75c5d2f5a28b70231f8f95d4b95e.tar.gz
fix reIndex on secondaries SERVER-3866
Diffstat (limited to 'db')
-rw-r--r--db/dbcommands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp
index 31f4b7fedfb..1445c4dd04e 100644
--- a/db/dbcommands.cpp
+++ b/db/dbcommands.cpp
@@ -949,7 +949,7 @@ namespace mongo {
}
list<BSONObj> all;
- auto_ptr<DBClientCursor> i = db.getIndexes( toDeleteNs );
+ auto_ptr<DBClientCursor> i = db.query( dbname + ".system.indexes" , BSON( "ns" << toDeleteNs ) , 0 , 0 , 0 , QueryOption_SlaveOk );
BSONObjBuilder b;
while ( i->more() ) {
BSONObj o = i->next().removeField("v").getOwned();