mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Use latch instead of select() in walreceiver
Replace use of poll()/select() by WaitLatchOrSocket(), which is more portable and flexible. Also change walreceiver to use its procLatch instead of a custom latch. From: Petr Jelinek <petr@2ndquadrant.com>
This commit is contained in:
@@ -127,8 +127,9 @@ typedef struct
|
||||
* where to start streaming (after setting receiveStart and
|
||||
* receiveStartTLI), and also to tell it to send apply feedback to the
|
||||
* primary whenever specially marked commit records are applied.
|
||||
* This is normally mapped to procLatch when walreceiver is running.
|
||||
*/
|
||||
Latch latch;
|
||||
Latch *latch;
|
||||
} WalRcvData;
|
||||
|
||||
extern WalRcvData *WalRcv;
|
||||
|
Reference in New Issue
Block a user