Merge "Call sync() to guarantee blocks were released by unlink" into main

This commit is contained in:
Treehugger Robot 2024-06-28 00:18:23 +00:00 committed by Gerrit Code Review
commit 2d4d60cccb

View file

@ -60,6 +60,7 @@ static_assert(sizeof(off_t) == sizeof(uint64_t));
static inline void cleanup(const std::string& file_path, bool created) {
if (created) {
unlink(file_path.c_str());
sync();
}
}