mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Fix in-memory parts
This commit is contained in:
parent
0aebab50f5
commit
e87ed0ff02
@ -7141,8 +7141,9 @@ void StorageReplicatedMergeTree::createTableSharedID()
|
||||
|
||||
void StorageReplicatedMergeTree::lockSharedData(const IMergeTreeDataPart & part) const
|
||||
{
|
||||
if (!part.volume)
|
||||
if (!part.volume || !part.isStoredOnDisk())
|
||||
return;
|
||||
|
||||
DiskPtr disk = part.volume->getDisk();
|
||||
if (!disk || !disk->supportZeroCopyReplication())
|
||||
return;
|
||||
@ -7174,8 +7175,9 @@ bool StorageReplicatedMergeTree::unlockSharedData(const IMergeTreeDataPart & par
|
||||
|
||||
bool StorageReplicatedMergeTree::unlockSharedData(const IMergeTreeDataPart & part, const String & name) const
|
||||
{
|
||||
if (!part.volume)
|
||||
if (!part.volume || !part.isStoredOnDisk())
|
||||
return true;
|
||||
|
||||
DiskPtr disk = part.volume->getDisk();
|
||||
if (!disk || !disk->supportZeroCopyReplication())
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user