summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Pasette <dan@10gen.com>2013-10-28 20:24:59 -0400
committerDan Pasette <dan@mongodb.com>2013-10-29 12:36:46 -0400
commit1361ad0eacf7b924226d71aaab12e6f62e76e476 (patch)
treee23a574f375443b1c473b35d38fb55db2a63d6ab /src
parent2d14d3fd473713be56a634dc3d17ac46d85450e1 (diff)
downloadmongo-1361ad0eacf7b924226d71aaab12e6f62e76e476.tar.gz
SERVER-11178: re-added nIndexesWas to reIndex result
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/commands/drop_indexes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp
index 7f9bccc8e42..4114c539924 100644
--- a/src/mongo/db/commands/drop_indexes.cpp
+++ b/src/mongo/db/commands/drop_indexes.cpp
@@ -230,6 +230,7 @@ namespace mongo {
b.append( BSONObjBuilder::numStr( all.size() ) , o );
all.push_back( o );
}
+ result.appendNumber( "nIndexesWas", collection->getIndexCatalog()->numIndexesTotal() );
Status s = collection->getIndexCatalog()->dropAllIndexes( true );
if ( !s.isOK() ) {