aboutsummaryrefslogtreecommitdiff
path: root/src/include/common/parse_manifest.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2024-10-02 09:59:04 -0400
committerRobert Haas <rhaas@postgresql.org>2024-10-02 09:59:04 -0400
commitd94cf5ca7fad9cd81af5eac491bfbaf0facb9f6f (patch)
tree757c737bd7d37a01707f15a57257b1f0b34dabb8 /src/include/common/parse_manifest.h
parent7b2822ecf944a6aa429c05cc7f070001c3817934 (diff)
downloadpostgresql-d94cf5ca7fad9cd81af5eac491bfbaf0facb9f6f.tar.gz
postgresql-d94cf5ca7fad9cd81af5eac491bfbaf0facb9f6f.zip
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/1865585.1727803933@sss.pgh.pa.us
Diffstat (limited to 'src/include/common/parse_manifest.h')
-rw-r--r--src/include/common/parse_manifest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/common/parse_manifest.h b/src/include/common/parse_manifest.h
index ee571a568a1..1b8bc447e44 100644
--- a/src/include/common/parse_manifest.h
+++ b/src/include/common/parse_manifest.h
@@ -28,7 +28,7 @@ typedef void (*json_manifest_system_identifier_callback) (JsonManifestParseConte
uint64 manifest_system_identifier);
typedef void (*json_manifest_per_file_callback) (JsonManifestParseContext *,
const char *pathname,
- size_t size, pg_checksum_type checksum_type,
+ uint64 size, pg_checksum_type checksum_type,
int checksum_length, uint8 *checksum_payload);
typedef void (*json_manifest_per_wal_range_callback) (JsonManifestParseContext *,
TimeLineID tli,