summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
diff options
context:
space:
mode:
authornehakhatri5 <neha.khatri@mongodb.com>2018-07-23 13:20:41 +1000
committernehakhatri5 <neha.khatri@mongodb.com>2018-08-06 15:51:51 +1000
commit4e57f57add2ad51a1c8cafd3fa05ec50b6437797 (patch)
tree875e6d4481d1c55ba783ec1738cc1f5b89913b72 /src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
parent063f0b27cfc73cb089b2e76a5fe534b39934ffa4 (diff)
downloadmongo-4e57f57add2ad51a1c8cafd3fa05ec50b6437797.tar.gz
SERVER-34489 Enable timestamp safe unique indexes via FCV.
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.cpp5
1 files changed, 2 insertions, 3 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 4f8938c638f..6a73d426a90 100644
--- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
@@ -450,9 +450,8 @@ Status ReplicationCoordinatorExternalStateImpl::initializeReplSetStorage(Operati
// to that shard, the new node will still start up with featureCompatibilityVersion 4.0 and
// may need to have unique index version updated. Such indexes would be updated during
// InitialSync because the new node is a secondary.
- // TODO(SERVER-34489) Add a check for latest FCV when upgrade/downgrade is ready.
- if (FeatureCompatibilityVersion::isCleanStartUp() &&
- serverGlobalParams.clusterRole != ClusterRole::ShardServer) {
+ if (serverGlobalParams.clusterRole != ClusterRole::ShardServer &&
+ FeatureCompatibilityVersion::isCleanStartUp()) {
auto updateStatus = updateNonReplicatedUniqueIndexes(opCtx);
if (!updateStatus.isOK())
return updateStatus;