projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f75a959
)
pg_prewarm: Add missing LWLockRegisterTranche call.
author
Robert Haas
<rhaas@postgresql.org>
Wed, 31 Jan 2018 20:12:33 +0000
(15:12 -0500)
committer
Robert Haas
<rhaas@postgresql.org>
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
.horiguchi.kyotaro@lab.ntt.co.jp
contrib/pg_prewarm/autoprewarm.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_prewarm/autoprewarm.c
b/contrib/pg_prewarm/autoprewarm.c
index 3a4cc5b172264c5e413bfb94c0797e7b903049ce..f99f9c07af3e8033e1bc8e33c3aa4fbd45b67d7c 100644
(file)
--- 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;
}