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

Commitbd75335

Browse files
committed
1 parenta4b0a4d commitbd75335

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎src/bin/pg_rewind/libpq_fetch.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ receiveFileChunks(const char *sql)
271271
char*filename;
272272
intfilenamelen;
273273
int64chunkoff;
274+
charchunkoff_str[32];
274275
intchunksize;
275276
char*chunk;
276277

@@ -343,8 +344,13 @@ receiveFileChunks(const char *sql)
343344
continue;
344345
}
345346

346-
pg_log(PG_DEBUG,"received chunk for file \"%s\", offset "INT64_FORMAT", size %d\n",
347-
filename,chunkoff,chunksize);
347+
/*
348+
* Separate step to keep platform-dependent format code out of
349+
* translatable strings.
350+
*/
351+
snprintf(chunkoff_str,sizeof(chunkoff_str),INT64_FORMAT,chunkoff);
352+
pg_log(PG_DEBUG,"received chunk for file \"%s\", offset %s, size %d\n",
353+
filename,chunkoff_str,chunksize);
348354

349355
open_target_file(filename, false);
350356

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp