0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 19:28:52 +02:00

ircd::fs: Disable fsync()/fdatasync() via AIO for now.

This commit is contained in:
Jason Volk 2018-08-24 00:17:16 -07:00
parent 1450678b83
commit 5825b21231

View file

@ -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)