mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
fix
This commit is contained in:
parent
ed76584876
commit
1a78e8a817
@ -3222,7 +3222,10 @@ void MergeTreeData::outdateBrokenPartAndCloneToDetached(const DataPartPtr & part
|
||||
LOG_INFO(log, "Cloning part {} to {}_{} and making it obsolete.", part_to_detach->data_part_storage->getPartDirectory(), prefix, part_to_detach->name);
|
||||
|
||||
part_to_detach->makeCloneInDetached(prefix, metadata_snapshot);
|
||||
removePartsFromWorkingSet(NO_TRANSACTION_RAW, {part_to_detach}, true);
|
||||
|
||||
DataPartsLock lock = lockParts();
|
||||
if (part_to_detach->getState() == DataPartState::Active)
|
||||
removePartsFromWorkingSet(NO_TRANSACTION_RAW, {part_to_detach}, true, &lock);
|
||||
}
|
||||
|
||||
void MergeTreeData::forcefullyMovePartToDetachedAndRemoveFromMemory(const MergeTreeData::DataPartPtr & part_to_detach, const String & prefix, bool restore_covered)
|
||||
|
@ -1,3 +1,4 @@
|
||||
-- Tags: long
|
||||
|
||||
drop table if exists rmt1;
|
||||
drop table if exists rmt2;
|
||||
|
Loading…
Reference in New Issue
Block a user