0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::fs::prof::psi: Eliminate non-trivial thread_local.

This commit is contained in:
Jason Volk 2020-12-06 04:53:59 -08:00
parent 9ba0a58769
commit 6f8d2c7578

View file

@ -333,14 +333,9 @@ noexcept try
if(unlikely(!file.name)) if(unlikely(!file.name))
return false; return false;
thread_local unique_mutable_buffer path_buf
{
fs::PATH_MAX_LEN
};
const auto &path const auto &path
{ {
fs::path(path_buf, vector_view<const string_view> fs::path(fs::path_scratch, vector_view<const string_view>
{ {
"/proc/pressure"_sv, file.name "/proc/pressure"_sv, file.name
}) })