pgsql: Fix initialization of dsa.c free area counter.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix initialization of dsa.c free area counter.
Date: 2017-04-10 19:02:20
Message-ID: E1cxeZw-0006o8-El@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix initialization of dsa.c free area counter.

The backend local copy of dsa_area_control->freed_segment_counter was
not properly initialized / maintained. This could, if unlucky, lead
to keeping attached to a segment for too long.

Found via valgrind bleat on buildfarm animal skink.

Author: Thomas Munro
Discussion: https://postgr.es/m/20170407164935.obsf2jipjfos5zei@alap3.anarazel.de

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c45b1d2283c6631b990de25098ea389a1b96277a

Modified Files
--------------
src/backend/utils/mmgr/dsa.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-04-10 19:14:07 pgsql: Use weaker locks when updating pg_subscription_rel
Previous Message Tom Lane 2017-04-10 17:52:29 pgsql: Improve castNode notation by introducing list-extraction-specifi