]> granicus.if.org Git - postgresql/commit
Fix initialization of dsa.c free area counter.
authorAndres Freund <andres@anarazel.de>
Mon, 10 Apr 2017 18:56:46 +0000 (11:56 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 10 Apr 2017 18:56:46 +0000 (11:56 -0700)
commitc45b1d2283c6631b990de25098ea389a1b96277a
treeac2dadd948c23e315308822a775a5f339a049af4
parent8f0530f58061b185dc385df42e62d78a18d4ae3e
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
src/backend/utils/mmgr/dsa.c