Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7b9d26

Browse files
committed
deps/reftable: don't use fsync(3p) if none was provided
1 parent 9b24d21 commit f7b9d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/reftable/stack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static int stack_fsync(const struct reftable_write_options *opts, int fd)
4646
{
4747
if (opts->fsync)
4848
return opts->fsync(fd);
49-
return fsync(fd);
49+
return 0;
5050
}
5151

5252
static ssize_t reftable_write_data(int fd, const void *data, size_t size)

0 commit comments

Comments
 (0)