SERVER-127012 Side write drains that are batched should use kGroupForTransactions (#54381)

GitOrigin-RevId: 42baa8f83774ce5ff5077f69a293d3c86ccda4ee
This commit is contained in:
Shin Yee Tan 2026-05-22 15:51:25 -05:00 committed by MongoDB Bot
parent c1fe003eec
commit 53c3f3c5fb

View File

@ -293,9 +293,8 @@ Status SideWritesTracker::drainWritesIntoIndex(
feature_flags::gFeatureFlagPrimaryDrivenIndexBuilds.isEnabled(
VersionContext::getDecoration(opCtx), fcvSnapshot);
WriteUnitOfWork wuow(opCtx,
primaryDrivenFeatureFlagEnabled
? WriteUnitOfWork::kGroupForPossiblyRetryableOperations
: WriteUnitOfWork::kDontGroup);
primaryDrivenFeatureFlagEnabled ? WriteUnitOfWork::kGroupForTransaction
: WriteUnitOfWork::kDontGroup);
int32_t batchSize = 0;
int64_t batchSizeBytes = 0;