diff options
| author | Jiawei Yang <jiawei.yang@mongodb.com> | 2023-04-04 20:32:11 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-05 00:35:47 +0000 |
| commit | 6b0141d1559164e212f66d9b62909b9d61df01c8 (patch) | |
| tree | 6fcc974f40a8b29678b40ff900448bff8cca6ac4 /src/mongo/db/session | |
| parent | 50acdda3c992e7bace5f0dd560fc94966a7aa870 (diff) | |
| download | mongo-6b0141d1559164e212f66d9b62909b9d61df01c8.tar.gz | |
SERVER-66587 rename isEnabledAndIgnoreFCV to isEnabledAndIgnoreFCVUnsafe
Diffstat (limited to 'src/mongo/db/session')
| -rw-r--r-- | src/mongo/db/session/session_catalog_mongod.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/session/session_catalog_mongod.cpp b/src/mongo/db/session/session_catalog_mongod.cpp index 40cc1cb7532..ea467cf0e67 100644 --- a/src/mongo/db/session/session_catalog_mongod.cpp +++ b/src/mongo/db/session/session_catalog_mongod.cpp @@ -356,8 +356,10 @@ void createTransactionTable(OperationContext* opCtx) { if (!collectionIsEmpty) { // Unless explicitly enabled, don't create the index to avoid delaying step up. + // (Ignore FCV check): This is used to fix a bug in Atlas where the index is not created + // in a cluster. This feature flag may no longer be used. if (feature_flags::gFeatureFlagAlwaysCreateConfigTransactionsPartialIndexOnStepUp - .isEnabledAndIgnoreFCV()) { + .isEnabledAndIgnoreFCVUnsafe()) { AutoGetCollection autoColl( opCtx, NamespaceString::kSessionTransactionsTableNamespace, LockMode::MODE_X); IndexBuildsCoordinator::get(opCtx)->createIndex( @@ -546,7 +548,9 @@ void MongoDSessionCatalog::onStepUp(OperationContext* opCtx) { abortInProgressTransactions(opCtx, this, _ti.get()); createTransactionTable(opCtx); - if (repl::feature_flags::gFeatureFlagRetryableFindAndModify.isEnabledAndIgnoreFCV()) { + // (Ignore FCV check): This is intentional to try creating the image_collection collection if + // the feature flag is ever enabled. + if (repl::feature_flags::gFeatureFlagRetryableFindAndModify.isEnabledAndIgnoreFCVUnsafe()) { createRetryableFindAndModifyTable(opCtx); } } |
