Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e52209

Browse files
committed
Simplify some code in pg_rewind when syncing target directory
9a4059d simplified the flush of target data folder when finishingprocessing, and could have done a bit more.Discussion:https://postgr.es/m/20190131064759.GA13429@paquier.xyz
1 parent2ab2344 commit6e52209

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
staticvoiddigestControlFile(ControlFileData*ControlFile,char*source,
3939
size_tsize);
4040
staticvoidupdateControlFile(ControlFileData*ControlFile);
41-
staticvoidsyncTargetDirectory(constchar*argv0);
41+
staticvoidsyncTargetDirectory(void);
4242
staticvoidsanityChecks(void);
4343
staticvoidfindCommonAncestorTimeline(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
staticvoid
718-
syncTargetDirectory(constchar*argv0)
718+
syncTargetDirectory(void)
719719
{
720720
if (!do_sync||dry_run)
721721
return;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp