diff options
author | Robert Haas | 2024-10-02 13:59:04 +0000 |
---|---|---|
committer | Robert Haas | 2024-10-02 13:59:04 +0000 |
commit | d94cf5ca7fad9cd81af5eac491bfbaf0facb9f6f (patch) | |
tree | 757c737bd7d37a01707f15a57257b1f0b34dabb8 /src/bin/pg_combinebackup/write_manifest.h | |
parent | 7b2822ecf944a6aa429c05cc7f070001c3817934 (diff) |
File size in a backup manifest should use uint64, not size_t.
size_t is the size of an object in memory, not the size of a file on disk.
Thanks to Tom Lane for noting the error.
Discussion: http://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/pg_combinebackup/write_manifest.h')
-rw-r--r-- | src/bin/pg_combinebackup/write_manifest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_combinebackup/write_manifest.h b/src/bin/pg_combinebackup/write_manifest.h index ebc4f9441ad..d2becaba1f9 100644 --- a/src/bin/pg_combinebackup/write_manifest.h +++ b/src/bin/pg_combinebackup/write_manifest.h @@ -23,7 +23,7 @@ extern manifest_writer *create_manifest_writer(char *directory, uint64 system_identifier); extern void add_file_to_manifest(manifest_writer *mwriter, const char *manifest_path, - size_t size, time_t mtime, + uint64 size, time_t mtime, pg_checksum_type checksum_type, int checksum_length, uint8 *checksum_payload); |