mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
add paths
This commit is contained in:
parent
a2365c5c83
commit
69403840e2
@ -590,12 +590,13 @@ static void sanityChecks(Server * server)
|
||||
server->context()->addWarningMessage("Available memory at server startup is too low (2GiB).");
|
||||
|
||||
if (!enoughSpaceInDirectory(data_path, 1ull << 30))
|
||||
server->context()->addWarningMessage("Available disk space for data at server startup is too low (1GiB).");
|
||||
server->context()->addWarningMessage("Available disk space for data at server startup is too low (1GiB): " + data_path);
|
||||
|
||||
if (!logs_path.empty())
|
||||
{
|
||||
if (!enoughSpaceInDirectory(fs::path(logs_path).parent_path(), 1ull << 30))
|
||||
server->context()->addWarningMessage("Available disk space for logs at server startup is too low (1GiB).");
|
||||
auto logs_parent = fs::path(logs_path).parent_path();
|
||||
if (!enoughSpaceInDirectory(logs_parent, 1ull << 30))
|
||||
server->context()->addWarningMessage("Available disk space for logs at server startup is too low (1GiB): " + logs_parent);
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
|
Loading…
Reference in New Issue
Block a user