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

Commit863d754

Browse files
committed
1 parent4faa1dc commit863d754

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
@@ -270,6 +270,7 @@ receiveFileChunks(const char *sql)
270270
char*filename;
271271
intfilenamelen;
272272
int64chunkoff;
273+
charchunkoff_str[32];
273274
intchunksize;
274275
char*chunk;
275276

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

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

348354
open_target_file(filename, false);
349355

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp