mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix style
This commit is contained in:
parent
3dbf32a558
commit
f815b4e037
@ -174,12 +174,18 @@ bool DatabaseLazy::empty() const
|
||||
return tables_cache.empty();
|
||||
}
|
||||
|
||||
static CurrentMetrics::Metric get_attached_count_metric_for_storage(const StoragePtr & storage) {
|
||||
if (storage->isView()) {
|
||||
static CurrentMetrics::Metric get_attached_count_metric_for_storage(const StoragePtr & storage)
|
||||
{
|
||||
if (storage->isView())
|
||||
{
|
||||
return CurrentMetrics::AttachedView;
|
||||
} else if (storage->isDictionary()) {
|
||||
}
|
||||
else if (storage->isDictionary())
|
||||
{
|
||||
return CurrentMetrics::AttachedDictionary;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
return CurrentMetrics::AttachedTable;
|
||||
}
|
||||
}
|
||||
|
@ -255,12 +255,18 @@ StoragePtr DatabaseWithOwnTablesBase::detachTable(ContextPtr /* context_ */, con
|
||||
}
|
||||
|
||||
|
||||
static CurrentMetrics::Metric get_attached_count_metric_for_storage(const StoragePtr & storage) {
|
||||
if (storage->isView()) {
|
||||
static CurrentMetrics::Metric get_attached_count_metric_for_storage(const StoragePtr & storage)
|
||||
{
|
||||
if (storage->isView())
|
||||
{
|
||||
return CurrentMetrics::AttachedView;
|
||||
} else if (storage->isDictionary()) {
|
||||
}
|
||||
else if (storage->isDictionary())
|
||||
{
|
||||
return CurrentMetrics::AttachedDictionary;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
return CurrentMetrics::AttachedTable;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user