mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Amend clumsy code
This commit is contained in:
parent
406d61f9c8
commit
27b0190c72
@ -46,7 +46,7 @@ static std::string renderFileNameTemplate(time_t now, const std::string & file_p
|
||||
std::tm buf;
|
||||
localtime_r(&now, &buf);
|
||||
std::ostringstream ss; // STYLE_CHECK_ALLOW_STD_STRING_STREAM
|
||||
ss << std::put_time(&buf, file_path.c_str());
|
||||
ss << std::put_time(&buf, path.filename().c_str());
|
||||
return path.replace_filename(ss.str());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user