Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0ff5bd7

Browse files
committed
pg_prewarm: Add missing LWLockRegisterTranche call.
Commit 79ccd7c, 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
1 parent f75a959 commit 0ff5bd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/pg_prewarm/autoprewarm.c

+2
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ apw_init_shmem(void)
767767
}
768768
LWLockRelease(AddinShmemInitLock);
769769

770+
LWLockRegisterTranche(apw_state->lock.tranche, "autoprewarm");
771+
770772
return found;
771773
}
772774

0 commit comments

Comments
 (0)