Skip to content

Commit

Permalink
Merge pull request #610 from cole-miller/close-fallocate
Browse files Browse the repository at this point in the history
raft: Close fd used for fallocate probing
  • Loading branch information
Mathieu Borderé authored Feb 28, 2024
2 parents 498d627 + 593f0b7 commit f2bfdff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/raft/uv_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@ static void probeFallocate(const char *dir, bool *fallocate)
if (rv == 0) {
*fallocate = true;
}
close(fd);

out:
UvFsRemoveFile(dir, UV__FS_PROBE_FALLOCATE_FILE, ignored);
Expand Down

0 comments on commit f2bfdff

Please sign in to comment.