Add chassert

This commit is contained in:
Alexander Sapin 2024-03-18 20:58:15 +01:00
parent 1264b5337e
commit 82da2d56e9

View File

@ -663,6 +663,7 @@ void StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(
/// they will happen on each replica, so we can check only in-memory info.
auto mutation_status = queue.getIncompleteMutationsStatus(mutation_id, &mutation_ids);
checkMutationStatus(mutation_status, mutation_ids);
chassert(mutation_status.is_done);
}
if (!inactive_replicas.empty())