Details
Description
Presently, we add UUIDs to non-replicated collections as part of ReplicationCoordinatorExternalStateImpl::initializeReplSetStorage. However, adding UUIDs is only necessary for replica sets started with no data files. The UUID generation should be moved to FeatureCompatibilityVersion::setIfCleanStartup.