Skip to content

Commit

Permalink
Merge pull request ClickHouse#58698 from ClickHouse/fix-bad-log-messa…
Browse files Browse the repository at this point in the history
…ge-2

Fix bad log message
  • Loading branch information
alexey-milovidov authored Jan 11, 2024
2 parents 84809b3 + 5f84d88 commit 3954036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/Allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ void prefaultPages([[maybe_unused]] void * buf_, [[maybe_unused]] size_t len_)
return;

auto [buf, len] = adjustToPageSize(buf_, len_, page_size);
if (auto res = ::madvise(buf, len, MADV_POPULATE_WRITE); res < 0)
if (::madvise(buf, len, MADV_POPULATE_WRITE) < 0)
LOG_TRACE(
LogFrequencyLimiter(&Poco::Logger::get("Allocator"), 1),
"Attempt to populate pages failed: {} (EINVAL is expected for kernels < 5.14)",
errnoToString(res));
errnoToString(errno));
#endif
}

Expand Down

0 comments on commit 3954036

Please sign in to comment.