Fix style

This commit is contained in:
Francisco Javier Jurado Moreno 2024-05-21 17:15:55 +02:00
parent 3dbf32a558
commit f815b4e037
2 changed files with 20 additions and 8 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}