Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit75edb91

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pg_rewind/local_source.c

Lines changed: 2 additions & 2 deletions
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:%dbytes 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)

[8]ページ先頭

©2009-2025 Movatter.jp