summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-10-14 00:01:33 -0400
committerEliot Horowitz <eliot@10gen.com>2011-10-14 00:01:33 -0400
commit58a3ee1f9e39877ffee65564697c43ac647b001d (patch)
treeab0c4e4c394013ff933470f46ec6d484da7dca23
parent836a7578cbb52993c59b03df8e19f91dd2dedd70 (diff)
downloadmongo-58a3ee1f9e39877ffee65564697c43ac647b001d.tar.gz
backport of SERVER-3866
-rw-r--r--db/dbcommands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp
index 59dd78c25ce..624cbd1ef0f 100644
--- a/db/dbcommands.cpp
+++ b/db/dbcommands.cpp
@@ -834,7 +834,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().getOwned();