mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Move each SLRU's lwlocks to a separate tranche.
This makes it significantly easier to identify these lwlocks in LWLOCK_STATS or Trace_lwlocks output. It's also arguably better from a modularity standpoint, since lwlock.c no longer needs to know anything about the LWLock needs of the higher-level SLRU facility. Ildus Kurbangaliev, reviewd by Álvaro Herrera and by me.
This commit is contained in:
@ -479,7 +479,7 @@ AsyncShmemInit(void)
|
||||
* Set up SLRU management of the pg_notify data.
|
||||
*/
|
||||
AsyncCtl->PagePrecedes = asyncQueuePagePrecedes;
|
||||
SimpleLruInit(AsyncCtl, "Async Ctl", NUM_ASYNC_BUFFERS, 0,
|
||||
SimpleLruInit(AsyncCtl, "async", NUM_ASYNC_BUFFERS, 0,
|
||||
AsyncCtlLock, "pg_notify");
|
||||
/* Override default assumption that writes should be fsync'd */
|
||||
AsyncCtl->do_fsync = false;
|
||||
|
Reference in New Issue
Block a user