summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl
diff options
context:
space:
mode:
authorMarcos José Grillo Ramirez <marcos.grillo@mongodb.com>2022-06-20 13:41:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-20 14:19:57 +0000
commit803e6ba5c7c4a13d9978d9adb32c68cd95f7c1e0 (patch)
treeec295fb68e03b8c6e84a28b073d72f71fbaedcf9 /src/mongo/db/repl
parentb06eb97f6f440a52010eef40f1da7af5fa3a2a0f (diff)
downloadmongo-803e6ba5c7c4a13d9978d9adb32c68cd95f7c1e0.tar.gz
SERVER-64717 Ensure the ShardRegistry always read with majority write concern, even in the config server
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r--src/mongo/db/repl/rs_rollback.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/repl/rs_rollback.cpp b/src/mongo/db/repl/rs_rollback.cpp
index bca10b5c3ed..8777903803c 100644
--- a/src/mongo/db/repl/rs_rollback.cpp
+++ b/src/mongo/db/repl/rs_rollback.cpp
@@ -2012,14 +2012,6 @@ void rollback_internal::syncFixUp(OperationContext* opCtx,
validator->resetKeyManagerCache();
}
- // Force the config server to update its shard registry on next access. Otherwise it may have
- // the stale data that has been just rolled back.
- if (serverGlobalParams.clusterRole == ClusterRole::ConfigServer) {
- if (auto shardRegistry = Grid::get(opCtx)->shardRegistry()) {
- shardRegistry->clearEntries();
- }
- }
-
// Force the default read/write concern cache to reload on next access in case the defaults
// document was rolled back.
ReadWriteConcernDefaults::get(opCtx).invalidate();