Adjust json_manifest_per_file_callback API in one more place.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Oct 2024 00:27:45 +0000 (20:27 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Oct 2024 00:27:45 +0000 (20:27 -0400)
Oversight in commit d94cf5ca7 (and in my testing of same).

Discussion: https://postgr.es/m/9468.1727895630@sss.pgh.pa.us

src/backend/backup/basebackup_incremental.c

index d45bb19c2ca158c1e8c008ac19778a95ab302e23..f581a5f9e68f93a24ec125bf1269e2aad8465b5d 100644 (file)
@@ -58,7 +58,7 @@ typedef struct
 {
    uint32      status;
    const char *path;
-   size_t      size;
+   uint64      size;
 } backup_file_entry;
 
 static uint32 hash_string_pointer(const char *s);
@@ -133,7 +133,7 @@ static void manifest_process_system_identifier(JsonManifestParseContext *context
                                               uint64 manifest_system_identifier);
 static void manifest_process_file(JsonManifestParseContext *context,
                                  const char *pathname,
-                                 size_t size,
+                                 uint64 size,
                                  pg_checksum_type checksum_type,
                                  int checksum_length,
                                  uint8 *checksum_payload);
@@ -966,7 +966,7 @@ manifest_process_system_identifier(JsonManifestParseContext *context,
  */
 static void
 manifest_process_file(JsonManifestParseContext *context,
-                     const char *pathname, size_t size,
+                     const char *pathname, uint64 size,
                      pg_checksum_type checksum_type,
                      int checksum_length,
                      uint8 *checksum_payload)