Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 75edb91

Browse files
Fix compilerwarning in logging size_t
The pg_fatal log which included filesizes were using UINT64_FORMAT for the size_t variables, which failed on 32 bit buildfarm animals. Change to using plain int instead, which is in line with how digestControlFile is doing it already. Per buildfarm animals florican and lapwing. Discussion: https://postgr.es/m/13C2BF64-4A6D-47E4-9181-3A658F00C9B7@yesql.se
1 parent fadb48b commit 75edb91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_rewind/local_source.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ local_queue_fetch_file(rewind_source *source, const char *path, size_t len)
114114
* check that the size of the file matches our earlier expectation.
115115
*/
116116
if (written_len != len)
117-
pg_fatal("size of source file \"%s\" changed concurrently: " UINT64_FORMAT " bytes expected, " UINT64_FORMAT " copied",
118-
srcpath, len, written_len);
117+
pg_fatal("size of source file \"%s\" changed concurrently: %d bytes expected, %d copied",
118+
srcpath, (int) len, (int) written_len);
119119

120120
if (close(srcfd) != 0)
121121
pg_fatal("could not close file \"%s\": %m", srcpath);

0 commit comments

Comments
 (0)