pgsql: worker_spi: Initialize bgw_notify_pid in all cases.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: worker_spi: Initialize bgw_notify_pid in all cases.
Date: 2014-05-27 03:01:47
Message-ID: E1Wp7e7-0005qV-PW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

worker_spi: Initialize bgw_notify_pid in all cases.

Commit 090d0f2050647958865cb495dff74af7257d2bb4 added new code showing
how it can be useful to set bgw_notify_pid to a non-zero value, but it
failed to make sure that the existing call to RegisterBackgroundWorker
initialized the new field at all.

Report and patch by Shigeru Hanada.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/616afee14d7e8d6690286aaf8a2a0a01168c378a

Modified Files
--------------
contrib/worker_spi/worker_spi.c | 1 +
1 file changed, 1 insertion(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2014-05-27 15:48:38 Re: pgsql: Improve generation algorithm for database system identifier.
Previous Message Tom Lane 2014-05-27 02:24:00 pgsql: Avoid unportable usage of sscanf(UINT64_FORMAT).