mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Less directories
This commit is contained in:
parent
39118ef461
commit
089cc25d9b
@ -249,7 +249,6 @@ void LocalServer::tryInitPath()
|
||||
LOG_DEBUG(log, "Working directory created: {}", path);
|
||||
}
|
||||
|
||||
fs::create_directories(config().getString("user_defined_path", fs::path(path) / "user_defined" / ""));
|
||||
fs::create_directories(fs::path(path) / "data" / "");
|
||||
fs::create_directories(fs::path(path) / "metadata" / "");
|
||||
|
||||
|
@ -35,10 +35,12 @@ std::unique_ptr<IUserDefinedSQLObjectsStorage> createUserDefinedSQLObjectsStorag
|
||||
}
|
||||
return std::make_unique<UserDefinedSQLObjectsZooKeeperStorage>(global_context, config.getString(zookeeper_path_key));
|
||||
}
|
||||
|
||||
String default_path = fs::path{global_context->getPath()} / "user_defined/";
|
||||
String path = config.getString(disk_path_key, default_path);
|
||||
return std::make_unique<UserDefinedSQLObjectsDiskStorage>(global_context, path);
|
||||
else
|
||||
{
|
||||
String default_path = fs::path{global_context->getPath()} / "user_defined" / "";
|
||||
String path = config.getString(disk_path_key, default_path);
|
||||
return std::make_unique<UserDefinedSQLObjectsDiskStorage>(global_context, path);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
class IUserDefinedSQLObjectsStorage;
|
||||
|
||||
std::unique_ptr<IUserDefinedSQLObjectsStorage> createUserDefinedSQLObjectsStorage(const ContextMutablePtr & global_context);
|
||||
|
Loading…
Reference in New Issue
Block a user