Re: Tighten error control for OpenTransientFile/CloseTransientFile
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Georgios Kokolatos <gkokolatos@pm.me>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2019-03-07T01:56:25Z
Lists: pgsql-hackers
Attachments
- transient-fd-error-v2.patch (text/x-diff) patch v2
On Wed, Mar 06, 2019 at 02:54:52PM +0000, Georgios Kokolatos wrote: > Overall the patch looks good and according to the previous > discussion fulfils its purpose. > > It might be worthwhile to also check for errors on close in > SaveSlotToPath(). Thanks for the feedback, added. I have spent some time double-checking this stuff, and noticed that the new errors in StartupReplicationOrigin() and CheckPointReplicationOrigin() should be switched from ERROR to PANIC to be consistent. One message in dsm_impl_mmap() was not consistent either. Are there any objections if I commit this patch? -- Michael
Commits
-
Tighten use of OpenTransientFile and CloseTransientFile
- 82a5649fb9db 12.0 landed
-
PANIC on fsync() failure.
- 9ccdd7f66e33 12.0 cited