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

Commita66e683

Browse files
author
Michael Paquier
committed
Improve comment explaining how search_next_wal works with LSN
This makes the explanation a bit clearer, as the LSN in this functionis used with the current timeline to generate the file name.
1 parentced83f7 commita66e683

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎restore.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,12 @@ search_next_wal(const char *path, XLogRecPtr *need_lsn, parray *timelines)
10211021
parray_remove(timelines,i+1);
10221022
/* XXX: should we add a linebreak when we find a timeline? */
10231023

1024-
/* Move to next xlog segment */
1024+
/*
1025+
* Move to next xlog segment. Note that we need to increment
1026+
* by XLogSegSize to jump directly to the next WAL segment file
1027+
* and as this value is used to generate the WAL file name with
1028+
* the current timeline of backup.
1029+
*/
10251030
*need_lsn+=XLogSegSize;
10261031
}
10271032
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp