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

Commitbd8a356

Browse files
committed
Suppress compiler warning (pid_t isn't int everywhere)
1 parentb4594a6 commitbd8a356

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎src/backend/storage/ipc/standby.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Portions Copyright (c) 1994, Regents of the University of California
1616
*
1717
* IDENTIFICATION
18-
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.1 2009/12/19 01:32:35 sriggs Exp $
18+
* $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.2 2009/12/31 22:07:36 tgl Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -234,17 +234,17 @@ ResolveRecoveryConflictWithVirtualXIDs(VirtualTransactionId *waitlist,
234234
{
235235
caseCONFLICT_MODE_FATAL:
236236
elog(trace_recovery(DEBUG1),
237-
"recovery disconnects session with pid %d because of conflict with %s",
238-
pid,
239-
reason);
237+
"recovery disconnects session with pid %ld because of conflict with %s",
238+
(long)pid,
239+
reason);
240240
break;
241241
caseCONFLICT_MODE_ERROR:
242242
elog(trace_recovery(DEBUG1),
243-
"recovery cancels virtual transaction %u/%u pid %d because of conflict with %s",
244-
waitlist->backendId,
245-
waitlist->localTransactionId,
246-
pid,
247-
reason);
243+
"recovery cancels virtual transaction %u/%u pid %ld because of conflict with %s",
244+
waitlist->backendId,
245+
waitlist->localTransactionId,
246+
(long)pid,
247+
reason);
248248
break;
249249
default:
250250
/* No conflict pending, so fall through */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp