diff options
| author | Robert Haas | 2016-02-02 11:42:14 +0000 |
|---|---|---|
| committer | Robert Haas | 2016-02-02 11:45:55 +0000 |
| commit | 7191ce8bea0cb110a28faef178efa92bf456e030 (patch) | |
| tree | 04014e9bfc2ca0dfdb09dec11cd94a2cc84afa81 /src/include | |
| parent | 1d0c3b3f8a98b0ed9515ff0a3868266c3bfb5d38 (diff) | |
Make all built-in lwlock tranche IDs fixed.
This makes the values more stable, which seems like a good thing for
anybody who needs to look at at them.
Alexander Korotkov and Amit Kapila
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/slru.h | 2 | ||||
| -rw-r--r-- | src/include/storage/lwlock.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/include/access/slru.h b/src/include/access/slru.h index 6c452c8b967..5fcebc52fba 100644 --- a/src/include/access/slru.h +++ b/src/include/access/slru.h @@ -144,7 +144,7 @@ typedef SlruCtlData *SlruCtl; extern Size SimpleLruShmemSize(int nslots, int nlsns); extern void SimpleLruInit(SlruCtl ctl, const char *name, int nslots, int nlsns, - LWLock *ctllock, const char *subdir); + LWLock *ctllock, const char *subdir, int tranche_id); extern int SimpleLruZeroPage(SlruCtl ctl, int pageno); extern int SimpleLruReadPage(SlruCtl ctl, int pageno, bool write_ok, TransactionId xid); diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h index 9e4f512e2c8..613df19ad64 100644 --- a/src/include/storage/lwlock.h +++ b/src/include/storage/lwlock.h @@ -210,9 +210,17 @@ extern void LWLockInitialize(LWLock *lock, int tranche_id); typedef enum BuiltinTrancheIds { LWTRANCHE_MAIN, + LWTRANCHE_CLOG_BUFFERS, + LWTRANCHE_COMMITTS_BUFFERS, + LWTRANCHE_SUBTRANS_BUFFERS, + LWTRANCHE_MXACTOFFSET_BUFFERS, + LWTRANCHE_MXACTMEMBER_BUFFERS, + LWTRANCHE_ASYNC_BUFFERS, + LWTRANCHE_OLDSERXID_BUFFERS, LWTRANCHE_WAL_INSERT, LWTRANCHE_BUFFER_CONTENT, LWTRANCHE_BUFFER_IO_IN_PROGRESS, + LWTRANCHE_REPLICATION_ORIGIN, LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS, LWTRANCHE_PROC, LWTRANCHE_FIRST_USER_DEFINED |
