mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
fix assertions
This commit is contained in:
parent
049d2a0897
commit
19a376b9f7
@ -1414,6 +1414,9 @@ bool IMergeTreeDataPart::assertHasValidVersionMetadata() const
|
||||
if (part_is_probably_removed_from_disk)
|
||||
return true;
|
||||
|
||||
if (state == State::Temporary)
|
||||
return true;
|
||||
|
||||
DiskPtr disk = volume->getDisk();
|
||||
if (!disk->exists(getFullRelativePath()))
|
||||
return true;
|
||||
@ -1772,6 +1775,7 @@ String IMergeTreeDataPart::getRelativePathForDetachedPart(const String & prefix)
|
||||
void IMergeTreeDataPart::renameToDetached(const String & prefix) const
|
||||
{
|
||||
renameTo(getRelativePathForDetachedPart(prefix), true);
|
||||
part_is_probably_removed_from_disk = true;
|
||||
}
|
||||
|
||||
void IMergeTreeDataPart::makeCloneInDetached(const String & prefix, const StorageMetadataPtr & /*metadata_snapshot*/) const
|
||||
|
Loading…
Reference in New Issue
Block a user