Permalink
Browse files

backport of SERVER-3866

  • Loading branch information...
erh committed Oct 14, 2011
1 parent 836a757 commit 58a3ee1f9e39877ffee65564697c43ac647b001d
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/dbcommands.cpp
View
@@ -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();

0 comments on commit 58a3ee1

Please sign in to comment.