diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_drop_indexes_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_drop_indexes_cmd.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/mongo/s/commands/cluster_drop_indexes_cmd.cpp b/src/mongo/s/commands/cluster_drop_indexes_cmd.cpp index 9dca911b224..691026712cb 100644 --- a/src/mongo/s/commands/cluster_drop_indexes_cmd.cpp +++ b/src/mongo/s/commands/cluster_drop_indexes_cmd.cpp @@ -83,11 +83,18 @@ public: CommandHelpers::filterCommandRequestForPassthrough(cmdObj), ReadPreferenceSetting::get(opCtx), Shard::RetryPolicy::kNotIdempotent); - return appendRawResponses(opCtx, - &errmsg, - &output, - std::move(shardResponses), - {ErrorCodes::NamespaceNotFound, ErrorCodes::IndexNotFound}); + const bool ok = + appendRawResponses(opCtx, + &errmsg, + &output, + std::move(shardResponses), + {ErrorCodes::NamespaceNotFound, ErrorCodes::IndexNotFound}); + + if (ok) { + log() << "Indexes dropped on namespace " << nss; + } + + return ok; } } dropIndexesCmd; |