mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::fs: Disable fsync()/fdatasync() via AIO for now.
This commit is contained in:
parent
1450678b83
commit
5825b21231
1 changed files with 6 additions and 2 deletions
|
@ -177,11 +177,13 @@ ircd::fs::fsync(const fd &fd,
|
|||
const fsync_opts &opts)
|
||||
try
|
||||
{
|
||||
//TODO: AIO fsync is throwing -EINVAL
|
||||
/*
|
||||
#ifdef IRCD_USE_AIO
|
||||
if(likely(aioctx))
|
||||
return fsync__aio(fd, opts);
|
||||
#endif
|
||||
|
||||
*/
|
||||
syscall(::fsync, fd);
|
||||
}
|
||||
catch(const error &e)
|
||||
|
@ -205,11 +207,13 @@ ircd::fs::fdsync(const fd &fd,
|
|||
const fsync_opts &opts)
|
||||
try
|
||||
{
|
||||
//TODO: AIO fdsync is throwing -EINVAL
|
||||
/*
|
||||
#ifdef IRCD_USE_AIO
|
||||
if(likely(aioctx))
|
||||
return fdsync__aio(fd, opts);
|
||||
#endif
|
||||
|
||||
*/
|
||||
syscall(::fdatasync, fd);
|
||||
}
|
||||
catch(const error &e)
|
||||
|
|
Loading…
Reference in a new issue