Merge "Call sync() to guarantee blocks were released by unlink" into main
This commit is contained in:
commit
2d4d60cccb
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue