mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +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)
|
const fsync_opts &opts)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
//TODO: AIO fsync is throwing -EINVAL
|
||||||
|
/*
|
||||||
#ifdef IRCD_USE_AIO
|
#ifdef IRCD_USE_AIO
|
||||||
if(likely(aioctx))
|
if(likely(aioctx))
|
||||||
return fsync__aio(fd, opts);
|
return fsync__aio(fd, opts);
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
syscall(::fsync, fd);
|
syscall(::fsync, fd);
|
||||||
}
|
}
|
||||||
catch(const error &e)
|
catch(const error &e)
|
||||||
|
@ -205,11 +207,13 @@ ircd::fs::fdsync(const fd &fd,
|
||||||
const fsync_opts &opts)
|
const fsync_opts &opts)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
//TODO: AIO fdsync is throwing -EINVAL
|
||||||
|
/*
|
||||||
#ifdef IRCD_USE_AIO
|
#ifdef IRCD_USE_AIO
|
||||||
if(likely(aioctx))
|
if(likely(aioctx))
|
||||||
return fdsync__aio(fd, opts);
|
return fdsync__aio(fd, opts);
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
syscall(::fdatasync, fd);
|
syscall(::fdatasync, fd);
|
||||||
}
|
}
|
||||||
catch(const error &e)
|
catch(const error &e)
|
||||||
|
|
Loading…
Reference in a new issue