mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Added comment for selecting disk for mutation.
This commit is contained in:
parent
f44cee623a
commit
0dea6f5458
@ -1139,6 +1139,7 @@ bool StorageReplicatedMergeTree::tryExecutePartMutation(const StorageReplicatedM
|
||||
MutationCommands commands = queue.getMutationCommands(source_part, new_part_info.mutation);
|
||||
|
||||
/// Can throw an exception.
|
||||
/// Once we mutate part, we must reserve space on the same disk, because mutations can possibly create hardlinks.
|
||||
DiskSpace::ReservationPtr reserved_space = source_part->disk->reserveSpace(estimated_space_for_result);
|
||||
|
||||
auto table_lock = lockStructureForShare(false, RWLockImpl::NO_QUERY);
|
||||
|
Loading…
Reference in New Issue
Block a user