mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd::db: Use proper fs::sync() for sync requests.
This commit is contained in:
parent
b80735c575
commit
df36a6a4ac
1 changed files with 2 additions and 2 deletions
|
@ -4785,7 +4785,7 @@ noexcept try
|
|||
#endif
|
||||
|
||||
fs::fsync_opts opts;
|
||||
fs::fdsync(fd, opts);
|
||||
fs::sync(fd, opts);
|
||||
return Status::OK();
|
||||
}
|
||||
catch(const fs::error &e)
|
||||
|
@ -7000,7 +7000,7 @@ noexcept try
|
|||
#endif
|
||||
|
||||
fs::fsync_opts opts;
|
||||
fs::fdsync(fd, opts);
|
||||
fs::sync(fd, opts);
|
||||
return Status::OK();
|
||||
}
|
||||
catch(const fs::error &e)
|
||||
|
|
Loading…
Add table
Reference in a new issue