mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Update StorageMaterializedView.cpp
This commit is contained in:
parent
06dfb4a29a
commit
572dcbcbe2
@ -431,7 +431,12 @@ Strings StorageMaterializedView::getDataPaths() const
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user