Fix STOP WAL LOCATION in backup history files no to return the next

Itagaki Takahiro <itagaki.takahiro@gmail.com>

Commit: 2c0914be737f81c2d0c020bf44fb66d92281c3a6
Author: Itagaki Takahiro <itagaki.takahiro@gmail.com>
Date: 2010-02-19T01:07:57Z
Releases: 8.2.16
Fix STOP WAL LOCATION in backup history files no to return the next
segment of XLOG_BACKUP_END record even if the the record is placed
at a segment boundary. Furthermore the previous implementation could
return nonexistent segment file name when the boundary is in segments
that has "FE" suffix; We never use segments with "FF" suffix.

Backpatch to 8.0, where hot backup was introduced.

Reported by Fujii Masao.

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +2 −2