Move each SLRU's lwlocks to a separate tranche.
Robert Haas <rhaas@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/clog.c | modified | +1 −1 |
| src/backend/access/transam/commit_ts.c | modified | +1 −1 |
| src/backend/access/transam/multixact.c | modified | +2 −2 |
| src/backend/access/transam/slru.c | modified | +25 −12 |
| src/backend/access/transam/subtrans.c | modified | +1 −1 |
| src/backend/commands/async.c | modified | +1 −1 |
| src/backend/storage/lmgr/lwlock.c | modified | +0 −23 |
| src/backend/storage/lmgr/predicate.c | modified | +1 −1 |
| src/include/access/slru.h | modified | +9 −1 |