0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 00:03:45 +02:00

ircd:Ⓜ️:events: Cleanup fd options for dumper.

This commit is contained in:
Jason Volk 2020-05-09 18:58:01 -07:00
parent 90bd13a0fe
commit ed931bcf6e

View file

@ -87,14 +87,13 @@ ircd::m::events::rebuild()
void
ircd::m::events::dump__file(const string_view &filename)
{
fs::fd::opts fileopts(std::ios::out | std::ios::app);
fileopts.dontneed = true;
const fs::fd file
{
filename, std::ios::out | std::ios::app
filename, fileopts
};
// POSIX_FADV_DONTNEED
fs::evict(file);
const unique_buffer<mutable_buffer> buf
{
size_t(dump_buffer_size)