pg_prewarm: Add missing LWLockRegisterTranche call.
authorRobert Haas
Wed, 31 Jan 2018 20:12:33 +0000 (15:12 -0500)
committerRobert Haas
Wed, 31 Jan 2018 20:12:33 +0000 (15:12 -0500)
Commit 79ccd7cbd5ca44bee0191d12e9e65abf702899e7, which added automatic
prewarming, neglected this.

Kyotaro Horiguchi, reviewed by me.

Discussion: http://postgr.es/m/20171215.173219.38055760[email protected]

contrib/pg_prewarm/autoprewarm.c

index 3a4cc5b172264c5e413bfb94c0797e7b903049ce..f99f9c07af3e8033e1bc8e33c3aa4fbd45b67d7c 100644 (file)
@@ -767,6 +767,8 @@ apw_init_shmem(void)
    }
    LWLockRelease(AddinShmemInitLock);
 
+   LWLockRegisterTranche(apw_state->lock.tranche, "autoprewarm");
+
    return found;
 }