News for hackers. Stuff that matters.
Re:Removing fsync from our local storage engine by thomas_fa on Saturday May 09, 2026 @12:19PM (#48076121)
Thanks for pointing it out the mistakes. We should make it clearer, when fsync an opened file descriptor, it would only sync its own metadata. To make it truly persistent, we need to issue another fsync for the directory fd, which would make it more expensive.
Re:Removing fsync from our local storage engine by dezgeg on Saturday May 09, 2026 @01:02PM (#48076418)
You don't need to do that for every write though. Only when the database file is created.
Re:Removing fsync from our local storage engine by thomas_fa on Saturday May 09, 2026 @01:10PM (#48076491)
Yes, especially for our object storage each putObject would need to create new entry for in the (data)name space which would need fsync for dir fd.