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

Appearance settings

Commit 5883f5f

Browse filesBrowse files
committed
Fix unportable printf format introduced in commit 9290ad1.
"%ld" is not an acceptable format spec for int64 variables, though it accidentally works on most non-Windows 64-bit platforms. Follow the lead of commit 6a1cd8b, and use "%lld" with an explicit cast to long long. Per buildfarm.
1 parent e048722 commit 5883f5f
Copy full SHA for 5883f5f

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎src/backend/replication/walsender.c

Copy file name to clipboardExpand all lines: src/backend/replication/walsender.c
+5-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.