Skip to content

Commit bb07aa5

Browse files
authored
Merge pull request ClickHouse#80718 from azat/fix-logs-sanity-check
Ignore "Available disk space for logs at server startup is too low" for non-regular files used for logs
2 parents a669a37 + 2abb469 commit bb07aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/server/Server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ void sanityChecks(Server & server)
790790

791791
try
792792
{
793-
if (!logs_path.empty())
793+
if (!logs_path.empty() && fs::is_regular_file(logs_path))
794794
{
795795
auto logs_parent = fs::path(logs_path).parent_path();
796796
if (!enoughSpaceInDirectory(logs_parent, 1ull << 30))

0 commit comments

Comments
 (0)