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

Commit5883f5f

Browse files
committed
Fix unportable printf format introduced in commit9290ad1.
"%ld" is not an acceptable format spec for int64 variables, thoughit accidentally works on most non-Windows 64-bit platforms. Followthe lead of commit6a1cd8b, and use "%lld" with an explicit castto long long. Per buildfarm.
1 parente048722 commit5883f5f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/replication/walsender.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3644,8 +3644,11 @@ UpdateSpillStats(LogicalDecodingContext *ctx)
36443644
MyWalSnd->spillCount=rb->spillCount;
36453645
MyWalSnd->spillBytes=rb->spillBytes;
36463646

3647-
elog(DEBUG2,"UpdateSpillStats: updating stats %p %ld %ld %ld",
3648-
rb,rb->spillTxns,rb->spillCount,rb->spillBytes);
3647+
elog(DEBUG2,"UpdateSpillStats: updating stats %p %lld %lld %lld",
3648+
rb,
3649+
(long long)rb->spillTxns,
3650+
(long long)rb->spillCount,
3651+
(long long)rb->spillBytes);
36493652

36503653
SpinLockRelease(&MyWalSnd->mutex);
36513654
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp