Merge pull request #64762 from azat/mt-write-once-fixes

Do not try to write columns.txt if it does not exists for write-once storages
This commit is contained in:
Kseniia Sumarokova 2024-06-05 11:22:54 +00:00 committed by GitHub
commit b6b19ca6d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,7 +229,7 @@ bool DataPartStorageOnDiskBase::isBroken() const
bool DataPartStorageOnDiskBase::isReadonly() const
{
return volume->getDisk()->isReadOnly();
return volume->getDisk()->isReadOnly() || volume->getDisk()->isWriteOnce();
}
void DataPartStorageOnDiskBase::syncRevision(UInt64 revision) const