OSDN Git Service

Fix a couple of problems pointed out by Fujii Masao in the 2008-Apr-05 patch
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Sep 2008 16:42:15 +0000 (16:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Sep 2008 16:42:15 +0000 (16:42 +0000)
commitead21631e8c716452b08c6e5bbac43b081c303f9
tree8cc0e7fb41d8c3e279af4420b0b0e9139e8c15c2
parentbc01b45ab9fc4774e0adbe971bd0fff5a17f5705
Fix a couple of problems pointed out by Fujii Masao in the 2008-Apr-05 patch
for pg_stop_backup.  First, it is possible that the history file name is not
alphabetically later than the last WAL file name, so we should explicitly
check that both have been archived.  Second, the previous coding would wait
forever if a checkpoint had managed to remove the WAL file before we look for
it.

Simon Riggs, plus some code cleanup by me.
src/backend/access/transam/xlog.c