0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️:events: FADV_DONTNEED on events dump fd.

This commit is contained in:
Jason Volk 2020-01-08 14:58:24 -08:00
parent 048cfe7019
commit 47df2bc4e2

View file

@ -94,6 +94,9 @@ ircd::m::events::dump__file(const string_view &filename)
filename, std::ios::out | std::ios::app
};
// POSIX_FADV_DONTNEED
fs::evict(file);
const unique_buffer<mutable_buffer> buf
{
size_t(dump_buffer_size)