Skip to content

Commit

Permalink
SERVER-25936 DBClientBase drops indexes using dropIndexes instead of …
Browse files Browse the repository at this point in the history
…deleteIndexes
  • Loading branch information
benety committed Dec 27, 2018
1 parent f53ed89 commit 07ba0c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mongo/client/dbclient_base.cpp
Expand Up @@ -857,7 +857,7 @@ void DBClientBase::dropIndex(const string& ns, BSONObj keys) {
void DBClientBase::dropIndex(const string& ns, const string& indexName) {
BSONObj info;
if (!runCommand(nsToDatabase(ns),
BSON("deleteIndexes" << nsToCollectionSubstring(ns) << "index" << indexName),
BSON("dropIndexes" << nsToCollectionSubstring(ns) << "index" << indexName),
info)) {
LOG(_logLevel) << "dropIndex failed: " << info << endl;
uassert(10007, "dropIndex failed", 0);
Expand All @@ -869,8 +869,8 @@ void DBClientBase::dropIndexes(const string& ns) {
uassert(10008,
"dropIndexes failed",
runCommand(nsToDatabase(ns),
BSON("deleteIndexes" << nsToCollectionSubstring(ns) << "index"
<< "*"),
BSON("dropIndexes" << nsToCollectionSubstring(ns) << "index"
<< "*"),
info));
}

Expand Down

0 comments on commit 07ba0c2

Please sign in to comment.