1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/lib/pgBackRest/Storage
David Steele d211c2b8b5 Fix possible truncated WAL segments when an error occurs mid-write.
The file write object destructors called close() and finalized the file even if it was not completely written.  This was an issue in both the C and Perl code.

Rewrite the destructors to simply free resources (like file handles) rather than calling the close() method.  This leaves the temp file in place for filesystems that use temp files.

Add unit tests to prevent regression.

Reported by blogh.
2019-02-15 11:52:39 +02:00
..
Cifs Remove request for S3 object info directly after putting it. 2018-11-30 10:38:02 -05:00
Filter Move cryptographic hash functions to C using OpenSSL. 2018-06-11 14:52:26 -04:00
Posix Fix possible truncated WAL segments when an error occurs mid-write. 2019-02-15 11:52:39 +02:00
S3 Redact authentication header when throwing S3 errors. 2018-12-05 12:51:13 -05:00
Base.pm Remove request for S3 object info directly after putting it. 2018-11-30 10:38:02 -05:00
Helper.pm Rename PGBACKREST/BACKREST constants to PROJECT. 2018-11-24 19:05:03 -05:00
Local.pm Update Storage::Local->list() to accept an undefined path. 2019-01-16 18:49:12 +02:00