mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Replace the XLogInsert slots with regular LWLocks.
The special feature the XLogInsert slots had over regular LWLocks is the insertingAt value that was updated atomically with releasing backends waiting on it. Add new functions to the LWLock API to do that, and replace the slots with LWLocks. This reduces the amount of duplicated code. (There's still some duplication, but at least it's all in lwlock.c now.) Reviewed by Andres Freund.
This commit is contained in:
@@ -192,7 +192,7 @@ extern bool EnableHotStandby;
|
||||
extern bool fullPageWrites;
|
||||
extern bool wal_log_hints;
|
||||
extern bool log_checkpoints;
|
||||
extern int num_xloginsert_slots;
|
||||
extern int num_xloginsert_locks;
|
||||
|
||||
/* WAL levels */
|
||||
typedef enum WalLevel
|
||||
|
||||
Reference in New Issue
Block a user