From: Robert Haas Date: Wed, 31 Jan 2018 20:12:33 +0000 (-0500) Subject: pg_prewarm: Add missing LWLockRegisterTranche call. X-Git-Tag: REL_11_BETA1~850 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ff5bd7b47377a6b5939d6fbbb67c8d42f9170dc;p=thirdparty%2Fpostgresql.git pg_prewarm: Add missing LWLockRegisterTranche call. Commit 79ccd7cbd5ca44bee0191d12e9e65abf702899e7, which added automatic prewarming, neglected this. Kyotaro Horiguchi, reviewed by me. Discussion: http://postgr.es/m/20171215.173219.38055760.horiguchi.kyotaro@lab.ntt.co.jp --- diff --git a/contrib/pg_prewarm/autoprewarm.c b/contrib/pg_prewarm/autoprewarm.c index 3a4cc5b1722..f99f9c07af3 100644 --- a/contrib/pg_prewarm/autoprewarm.c +++ b/contrib/pg_prewarm/autoprewarm.c @@ -767,6 +767,8 @@ apw_init_shmem(void) } LWLockRelease(AddinShmemInitLock); + LWLockRegisterTranche(apw_state->lock.tranche, "autoprewarm"); + return found; }