aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pg_prewarm/autoprewarm.c2
1 files changed, 2 insertions, 0 deletions
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;
}