1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-16 10:20:02 +02:00
pgbackrest/src/command/backup
David Steele 713211d89f Clean up const usage in bufPtr() and bufRemainsPtr().
These functions accepted const Buffer objects and returned non-const pointers which is definitely not a good idea. Add bufPtrConst() to handle cases where only a const return value is needed and update call sites.

Use UNCONSTIFY() in cases where library code out of our control requires a non-const pointer. This includes the already-documented exception in command/backup/pageChecksum and input buffers in the gzCompress and gzDecompress filters.
2020-04-02 17:25:49 -04:00
..
backup.c Add infrastructure for multiple compression type support. 2020-03-06 14:41:03 -05:00
backup.h The backup command is implemented entirely in C. 2019-12-13 17:14:26 -05:00
common.c Allow end anchor to be excluded in backupRegExp(). 2019-12-12 18:52:16 -05:00
common.h Allow end anchor to be excluded in backupRegExp(). 2019-12-12 18:52:16 -05:00
file.c Limit backup file copy size to size reported at backup start. 2020-03-19 13:16:05 -04:00
file.h Add infrastructure for multiple compression type support. 2020-03-06 14:41:03 -05:00
pageChecksum.c Clean up const usage in bufPtr() and bufRemainsPtr(). 2020-04-02 17:25:49 -04:00
pageChecksum.h Use PG_PAGE_SIZE_DEFAULT constant instead of pageSize variable. 2020-03-05 09:14:27 -05:00
protocol.c Add infrastructure for multiple compression type support. 2020-03-06 14:41:03 -05:00
protocol.h The local command for backup is implemented entirely in C. 2019-07-25 14:34:16 -04:00