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

Commita6c8459

Browse files
committed
pg_rewind: Close backup_label file descriptor.
This was a relatively harmless leak, as createBackupLabel() is onlycalled once per pg_rewind invocation.Author: Michael PaquierReported-By: Michael PaquierDiscussion: CAB7nPqRnOw30gOXe2_SPLjh37bgm4V+txbYAPwoXb97nGQ297w@mail.gmail.comBackpatch: 9.5, where pg_rewind was introduced
1 parent1a7a436 commita6c8459

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/bin/pg_rewind/pg_rewind.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ createBackupLabel(XLogRecPtr startpoint, TimeLineID starttli, XLogRecPtr checkpo
584584
/* TODO: move old file out of the way, if any. */
585585
open_target_file("backup_label", true);/* BACKUP_LABEL_FILE */
586586
write_target_range(buf,0,len);
587+
close_target_file();
587588
}
588589

589590
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp