Skip to content

Commit 6e52209

Browse files
committed
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
1 parent 2ab2344 commit 6e52209

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_rewind/pg_rewind.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void createBackupLabel(XLogRecPtr startpoint, TimeLineID starttli,
3838
static void digestControlFile(ControlFileData *ControlFile, char *source,
3939
size_t size);
4040
static void updateControlFile(ControlFileData *ControlFile);
41-
static void syncTargetDirectory(const char *argv0);
41+
static void syncTargetDirectory(void);
4242
static void sanityChecks(void);
4343
static void findCommonAncestorTimeline(XLogRecPtr *recptr, int *tliIndex);
4444

@@ -380,7 +380,7 @@ main(int argc, char **argv)
380380
updateControlFile(&ControlFile_new);
381381

382382
pg_log(PG_PROGRESS, "syncing target data directory\n");
383-
syncTargetDirectory(argv[0]);
383+
syncTargetDirectory();
384384

385385
printf(_("Done!\n"));
386386

@@ -715,7 +715,7 @@ updateControlFile(ControlFileData *ControlFile)
715715
* the overall amount of IO noticeably.
716716
*/
717717
static void
718-
syncTargetDirectory(const char *argv0)
718+
syncTargetDirectory(void)
719719
{
720720
if (!do_sync || dry_run)
721721
return;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy