pg_prewarm: Add missing LWLockRegisterTranche call.

Commit 79ccd7cbd5, 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
This commit is contained in:
Robert Haas 2018-01-31 15:12:33 -05:00
parent f75a959155
commit 0ff5bd7b47

View File

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