summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_drop_cmd.cpp
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2020-01-07 21:07:42 +0000
committerevergreen <evergreen@mongodb.com>2020-01-07 21:07:42 +0000
commit191de9ac2f0a8651f3de2fb39b6d70a471dc040c (patch)
tree5a01bba2a5d29db88e7fb1bd86a3adb9f24a5ce1 /src/mongo/s/commands/cluster_drop_cmd.cpp
parent74a0db0ad7733783cd2c7f978cb4962a86b5bc0a (diff)
downloadmongo-191de9ac2f0a8651f3de2fb39b6d70a471dc040c.tar.gz
SERVER-44830 Modify StaleConfigException handlers to handle a single shard invalidation
Diffstat (limited to 'src/mongo/s/commands/cluster_drop_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_drop_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_drop_cmd.cpp b/src/mongo/s/commands/cluster_drop_cmd.cpp
index 6bc58c2d0e8..3effbb64055 100644
--- a/src/mongo/s/commands/cluster_drop_cmd.cpp
+++ b/src/mongo/s/commands/cluster_drop_cmd.cpp
@@ -76,8 +76,7 @@ public:
// Invalidate the routing table cache entry for this collection so that we reload it the
// next time it is accessed, even if sending the command to the config server fails due
// to e.g. a NetworkError.
- ON_BLOCK_EXIT(
- [opCtx, nss] { Grid::get(opCtx)->catalogCache()->invalidateShardedCollection(nss); });
+ ON_BLOCK_EXIT([opCtx, nss] { Grid::get(opCtx)->catalogCache()->onEpochChange(nss); });
auto configShard = Grid::get(opCtx)->shardRegistry()->getConfigShard();
auto cmdResponse = uassertStatusOK(configShard->runCommandWithFixedRetryAttempts(