diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2022-10-17 16:36:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-17 17:34:48 +0000 |
commit | 46d15e1715071f615fe6ceb4c54cf2803f69b7fc (patch) | |
tree | 4abe5c53649e7f3dafdf6451b1d41bad36580c83 /src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | |
parent | 4b08c5ca99f670bf5137d81ee78947651aa727c6 (diff) | |
download | mongo-46d15e1715071f615fe6ceb4c54cf2803f69b7fc.tar.gz |
SERVER-65558 Enable Feature flag for PM-2849
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 | 5 |
1 files changed, 4 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 677504159fc..bdd03bc69fe 100644 --- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp @@ -112,6 +112,7 @@ #include "mongo/s/client/shard_registry.h" #include "mongo/s/cluster_identity_loader.h" #include "mongo/s/grid.h" +#include "mongo/s/sharding_feature_flags_gen.h" #include "mongo/stdx/thread.h" #include "mongo/transport/service_entry_point.h" #include "mongo/util/assert_util.h" @@ -951,7 +952,9 @@ void ReplicationCoordinatorExternalStateImpl::_shardingOnTransitionToPrimaryHook // Note, these must be done after the configOpTime is recovered via // ShardingStateRecovery::recover above, because they may trigger filtering metadata // refreshes which should use the recovered configOpTime. - migrationutil::resubmitRangeDeletionsOnStepUp(_service); + if (!mongo::feature_flags::gRangeDeleterService.isEnabledAndIgnoreFCV()) { + migrationutil::resubmitRangeDeletionsOnStepUp(_service); + } migrationutil::resumeMigrationCoordinationsOnStepUp(opCtx); migrationutil::resumeMigrationRecipientsOnStepUp(opCtx); |