diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-10-14 00:01:33 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-10-14 00:01:33 -0400 |
commit | 58a3ee1f9e39877ffee65564697c43ac647b001d (patch) | |
tree | ab0c4e4c394013ff933470f46ec6d484da7dca23 | |
parent | 836a7578cbb52993c59b03df8e19f91dd2dedd70 (diff) | |
download | mongo-58a3ee1f9e39877ffee65564697c43ac647b001d.tar.gz |
backport of SERVER-3866
-rw-r--r-- | db/dbcommands.cpp | 2 |
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(); |