]> granicus.if.org Git - postgresql/commit
pg_upgrade: Improve error checking in rewriteVisibilityMap.
authorRobert Haas <rhaas@postgresql.org>
Mon, 6 Jun 2016 10:14:21 +0000 (06:14 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 6 Jun 2016 10:17:10 +0000 (06:17 -0400)
commitaba8943082f1ccbfb19f2e7ff02ba3be0fcb6c9d
tree41ebbcc307aaea64b9315b0252b3e95b7f91d69c
parent6201a8ef3ab1f44853ab3e4b16afeefc969a58bf
pg_upgrade: Improve error checking in rewriteVisibilityMap.

In the old logic, if read() were to return an error, we'd silently stop
rewriting the visibility map at that point in the file.  That's safe,
but reporting the error is better, so do that instead.

Report by Andres Freund.  Patch by Masahiko Sawada, with one correction
by me.
src/bin/pg_upgrade/file.c