aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-02-26 16:08:24 +0900
committerMichael Paquier <michael@paquier.xyz>2019-02-26 16:08:24 +0900
commit6e52209eb1f830552a5ec220c2bfc3b517535837 (patch)
tree97f9fcca891a97844b3e5651bbdaac11f154ab0a /src
parent2ab23445bc6af517bddb40d8429146d8ff8d7ff4 (diff)
downloadpostgresql-6e52209eb1f830552a5ec220c2bfc3b517535837.tar.gz
postgresql-6e52209eb1f830552a5ec220c2bfc3b517535837.zip
Simplify some code in pg_rewind when syncing target directory
9a4059d simplified the flush of target data folder when finishing processing, and could have done a bit more. Discussion: https://postgr.es/m/20190131064759.GA13429@paquier.xyz
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_rewind/pg_rewind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_rewind/pg_rewind.c b/src/bin/pg_rewind/pg_rewind.c
index 7ccde5c87f5..aa753bb315f 100644
--- a/src/bin/pg_rewind/pg_rewind.c
+++ b/src/bin/pg_rewind/pg_rewind.c
@@ -38,7 +38,7 @@ static void createBackupLabel(XLogRecPtr startpoint, TimeLineID starttli,
static void digestControlFile(ControlFileData *ControlFile, char *source,
size_t size);
static void updateControlFile(ControlFileData *ControlFile);
-static void syncTargetDirectory(const char *argv0);
+static void syncTargetDirectory(void);
static void sanityChecks(void);
static void findCommonAncestorTimeline(XLogRecPtr *recptr, int *tliIndex);
@@ -380,7 +380,7 @@ main(int argc, char **argv)
updateControlFile(&ControlFile_new);
pg_log(PG_PROGRESS, "syncing target data directory\n");
- syncTargetDirectory(argv[0]);
+ syncTargetDirectory();
printf(_("Done!\n"));
@@ -715,7 +715,7 @@ updateControlFile(ControlFileData *ControlFile)
* the overall amount of IO noticeably.
*/
static void
-syncTargetDirectory(const char *argv0)
+syncTargetDirectory(void)
{
if (!do_sync || dry_run)
return;