mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Remove unused latch
It was left unused by commit bc971f4025, which replaced the latch
usage with a condition variable
Discussion: https://www.postgresql.org/message-id/391abe21-413e-4d91-a650-b663af49500c@iki.fi
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#include "nodes/replnodes.h"
|
||||
#include "replication/syncrep.h"
|
||||
#include "storage/condition_variable.h"
|
||||
#include "storage/latch.h"
|
||||
#include "storage/shmem.h"
|
||||
#include "storage/spin.h"
|
||||
|
||||
@@ -71,12 +70,6 @@ typedef struct WalSnd
|
||||
/* Protects shared variables in this structure. */
|
||||
slock_t mutex;
|
||||
|
||||
/*
|
||||
* Pointer to the walsender's latch. Used by backends to wake up this
|
||||
* walsender when it has work to do. NULL if the walsender isn't active.
|
||||
*/
|
||||
Latch *latch;
|
||||
|
||||
/*
|
||||
* Timestamp of the last message received from standby.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user