diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-11-24 20:12:54 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-11-24 20:12:54 +0900 |
commit | f79962d8264b8d205ce45a8aa11d1b37f9592a81 (patch) | |
tree | b6643cd8bb2e70047f7f7b7e9006cc616b21b87a /src/backend/access/transam/xlog.c | |
parent | 411137a429210e432f923264a8e313a9872910ca (diff) | |
download | postgresql-f79962d8264b8d205ce45a8aa11d1b37f9592a81.tar.gz postgresql-f79962d8264b8d205ce45a8aa11d1b37f9592a81.zip |
Remove useless LZ4 system call on failure when writing file header
If an error occurs when writing the LZ4 file header, LZ4F_compressEnd()
was called in the error code path of write(), followed by
LZ4F_freeCompressionContext() to finish the cleanup. The code as-is was
not broken, but the LZ4F_compressEnd() proves to not be necessary as
there are no contents to flush at this stage, so remove it.
Per gripe from Jeevan Ladhe and Robert Haas.
Discussion: https://postgr.es/m/CAOgcT0PE33wbD7giAT1OSkNJt=p-vu8huq++qh=ny9O=SCP5aA@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions