diff options
Diffstat (limited to 'src/mongo/db/s/shardsvr_merge_chunks_command.cpp')
-rw-r--r-- | src/mongo/db/s/shardsvr_merge_chunks_command.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/s/shardsvr_merge_chunks_command.cpp b/src/mongo/db/s/shardsvr_merge_chunks_command.cpp index 7c844d3444f..3c049387b8f 100644 --- a/src/mongo/db/s/shardsvr_merge_chunks_command.cpp +++ b/src/mongo/db/s/shardsvr_merge_chunks_command.cpp @@ -95,6 +95,7 @@ void mergeChunks(OperationContext* opCtx, // Check that the preconditions for merge chunks are met and throw StaleShardVersion otherwise. const auto metadataBeforeMerge = [&]() { + onShardVersionMismatch(opCtx, nss, boost::none); OperationShardingState::unsetShardRoleForLegacyDDLOperationsSentWithShardVersionIfNeeded( opCtx, nss); const auto metadata = checkCollectionIdentity(opCtx, nss, expectedEpoch, expectedTimestamp); |