diff options
author | Randolph Tan <randolph@10gen.com> | 2023-03-23 16:56:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-23 18:22:54 +0000 |
commit | 89cb29b149ce70c1f85ca8f269fd7920787222e4 (patch) | |
tree | f18673eb3b4264c466a04a60baa4dde9d5025ae5 /src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | |
parent | 174eda1e9bbc5036707900cbcc75946fe1d8042c (diff) | |
download | mongo-89cb29b149ce70c1f85ca8f269fd7920787222e4.tar.gz |
SERVER-73960 Make config server always insert the shard identity document when catalogShard feature flag is on
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp index c9dfdd130f4..e94a2ccf42c 100644 --- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp @@ -1059,7 +1059,7 @@ void ReplicationCoordinatorExternalStateImpl::_shardingOnTransitionToPrimaryHook } } - if (gFeatureFlagCatalogShard.isEnabled(serverGlobalParams.featureCompatibility) && + if (gFeatureFlagCatalogShard.isEnabledAndIgnoreFCV() && serverGlobalParams.clusterRole == ClusterRole::ConfigServer && !ShardingState::get(opCtx)->enabled()) { // Note this must be called after the config server has created the cluster ID and also |