mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-23 23:07:15 +08:00
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
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user