0
0
Fork 0
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:
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) 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)