Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

backport of SERVER-3866

  • Loading branch information...
commit 58a3ee1f9e39877ffee65564697c43ac647b001d 1 parent 836a757
@erh erh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  db/dbcommands.cpp
View
2  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();
Please sign in to comment.
Something went wrong with that request. Please try again.