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:
parent
90bd13a0fe
commit
ed931bcf6e
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue