mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 00:32:10 -04:00
Fix unportable coding in BackgroundWorkerStateChange().
PIDs aren't necessarily ints; our usual practice for printing them is to explicitly cast to long. Per buildfarm member rover_firefly.
This commit is contained in:
parent
f0ee42d59b
commit
643f75ca9b
1 changed files with 2 additions and 2 deletions
|
|
@ -303,8 +303,8 @@ BackgroundWorkerStateChange(void)
|
|||
rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid;
|
||||
if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid))
|
||||
{
|
||||
elog(DEBUG1, "worker notification PID %u is not valid",
|
||||
rw->rw_worker.bgw_notify_pid);
|
||||
elog(DEBUG1, "worker notification PID %lu is not valid",
|
||||
(long) rw->rw_worker.bgw_notify_pid);
|
||||
rw->rw_worker.bgw_notify_pid = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue