SERVER-107240 Generate user-visible op entries for dropCollection commands issued within the context of a shardCollection being aborted (#52566)

GitOrigin-RevId: 1c5c78f5bafdc7e9a75871735738cd5c91439346
This commit is contained in:
ppolato 2026-04-27 15:51:37 +02:00 committed by MongoDB Bot
parent 03b7cbe401
commit f8a548384d

View File

@ -542,7 +542,8 @@ void broadcastDropCollection(OperationContext* opCtx,
const std::shared_ptr<executor::TaskExecutor>& executor,
const CancellationToken& token,
const OperationSessionInfo& osi,
const boost::optional<UUID>& expectedUUID = boost::none) {
const boost::optional<UUID>& expectedUUID,
bool fromMigrate) {
const auto primaryShardId = ShardingState::get(opCtx)->shardId();
auto participants = Grid::get(opCtx)->shardRegistry()->getAllShardIds(opCtx);
@ -561,7 +562,7 @@ void broadcastDropCollection(OperationContext* opCtx,
executor,
token,
osi,
true /* fromMigrate */,
fromMigrate,
false /* dropSystemCollections */,
expectedUUID);
}
@ -2508,7 +2509,8 @@ ExecutorFuture<void> CreateCollectionCoordinator::_cleanupOnAbort(
**executor,
token,
session,
_uuid);
_uuid,
false /*fromMigrate*/);
}