mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Merge pull request #24806 from ClickHouse/tavplubix-patch-2
Small improvement for StorageMaterializedView::getActionLock(...)
This commit is contained in:
commit
3dd7d252a9
@ -431,7 +431,12 @@ Strings StorageMaterializedView::getDataPaths() const
|
|||||||
|
|
||||||
ActionLock StorageMaterializedView::getActionLock(StorageActionBlockType type)
|
ActionLock StorageMaterializedView::getActionLock(StorageActionBlockType type)
|
||||||
{
|
{
|
||||||
return has_inner_table ? getTargetTable()->getActionLock(type) : ActionLock{};
|
if (has_inner_table)
|
||||||
|
{
|
||||||
|
if (auto target_table = tryGetTargetTable())
|
||||||
|
return target_table->getActionLock(type);
|
||||||
|
}
|
||||||
|
return ActionLock{};
|
||||||
}
|
}
|
||||||
|
|
||||||
void registerStorageMaterializedView(StorageFactory & factory)
|
void registerStorageMaterializedView(StorageFactory & factory)
|
||||||
|
Loading…
Reference in New Issue
Block a user