mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 19:14:30 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
20 lines
436 B
C++
20 lines
436 B
C++
#include "StorageLogSettings.h"
|
|
#include <Parsers/ASTCreateQuery.h>
|
|
#include <Parsers/ASTSetQuery.h>
|
|
|
|
namespace DB
|
|
{
|
|
String getDiskName(ASTStorage & storage_def)
|
|
{
|
|
if (storage_def.settings)
|
|
{
|
|
SettingsChanges changes = storage_def.settings->changes;
|
|
for (const auto & change : changes)
|
|
if (change.name == "disk")
|
|
return change.value.safeGet<String>();
|
|
}
|
|
return "default";
|
|
}
|
|
|
|
}
|