mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -2935,7 +2935,6 @@ InitWalSenderSlot(void)
|
||||
walsnd->flushLag = -1;
|
||||
walsnd->applyLag = -1;
|
||||
walsnd->sync_standby_priority = 0;
|
||||
walsnd->latch = &MyProc->procLatch;
|
||||
walsnd->replyTime = 0;
|
||||
|
||||
/*
|
||||
@ -2979,8 +2978,6 @@ WalSndKill(int code, Datum arg)
|
||||
MyWalSnd = NULL;
|
||||
|
||||
SpinLockAcquire(&walsnd->mutex);
|
||||
/* clear latch while holding the spinlock, so it can safely be read */
|
||||
walsnd->latch = NULL;
|
||||
/* Mark WalSnd struct as no longer being in use. */
|
||||
walsnd->pid = 0;
|
||||
SpinLockRelease(&walsnd->mutex);
|
||||
|
Reference in New Issue
Block a user