diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-11-12 14:59:09 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-11-12 14:59:09 -0500 |
commit | fe702a7b3f9f2bc5bf6d173166d7d55226af82c8 (patch) | |
tree | d2e1c94a293e39cef4615f20b91dfce21a1b0245 /src/backend/commands/async.c | |
parent | c405918858c09d4264ffc5a3c73d57dc3efb0213 (diff) | |
download | postgresql-fe702a7b3f9f2bc5bf6d173166d7d55226af82c8.tar.gz postgresql-fe702a7b3f9f2bc5bf6d173166d7d55226af82c8.zip |
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.
Diffstat (limited to 'src/backend/commands/async.c')
-rw-r--r-- | src/backend/commands/async.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index 5059e3de927..38231c99e21 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -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; |