diff options
author | Magnus Hagander <magnus@hagander.net> | 2016-10-23 18:04:34 +0200 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2016-10-23 18:04:34 +0200 |
commit | eade082b122889eaf92eb806b8b6799160a25256 (patch) | |
tree | 698e2d4b6b043b51eb52e58a8bf4ae63bcb52748 /src/bin/pg_basebackup/walmethods.c | |
parent | a5c17c1dcef4a656559152d3f6a5a27ae4957843 (diff) |
Rename walmethod fsync method to sync
Using the name fsync clashed with the #define we have on Windows that
redefines it to _commit. Naming it sync should remove that conflict.
Per all the Windows buildfarm members
Diffstat (limited to 'src/bin/pg_basebackup/walmethods.c')
-rw-r--r-- | src/bin/pg_basebackup/walmethods.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/pg_basebackup/walmethods.c b/src/bin/pg_basebackup/walmethods.c index fe6569dff32..d1dc046c97c 100644 --- a/src/bin/pg_basebackup/walmethods.c +++ b/src/bin/pg_basebackup/walmethods.c @@ -219,7 +219,7 @@ dir_close(Walfile f, WalCloseMethod method) } static int -dir_fsync(Walfile f) +dir_sync(Walfile f) { Assert(f != NULL); @@ -287,7 +287,7 @@ CreateWalDirectoryMethod(const char *basedir, bool sync) method->get_current_pos = dir_get_current_pos; method->get_file_size = dir_get_file_size; method->close = dir_close; - method->fsync = dir_fsync; + method->sync = dir_sync; method->existsfile = dir_existsfile; method->finish = dir_finish; method->getlasterror = dir_getlasterror; @@ -606,7 +606,7 @@ tar_get_current_pos(Walfile f) } static int -tar_fsync(Walfile f) +tar_sync(Walfile f) { Assert(f != NULL); tar_clear_error(); @@ -764,7 +764,7 @@ tar_close(Walfile f, WalCloseMethod method) return -1; /* Always fsync on close, so the padding gets fsynced */ - tar_fsync(f); + tar_sync(f); /* Clean up and done */ pg_free(tf->pathname); @@ -872,7 +872,7 @@ CreateWalTarMethod(const char *tarbase, int compression, bool sync) method->get_current_pos = tar_get_current_pos; method->get_file_size = tar_get_file_size; method->close = tar_close; - method->fsync = tar_fsync; + method->sync = tar_sync; method->existsfile = tar_existsfile; method->finish = tar_finish; method->getlasterror = tar_getlasterror; |