mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Yet more elimination of dead stores and useless initializations.
I'm not sure what tool Ranier was using, but the ones I contributed were found by using a newer version of scan-build than I tried before. Ranier Vilela and Tom Lane Discussion: https://postgr.es/m/CAEudQAo1+AcGppxDSg8k+zF4+Kv+eJyqzEDdbpDg58-=MQcerQ@mail.gmail.com
This commit is contained in:
@ -1918,7 +1918,6 @@ static void
|
||||
asyncQueueReadAllNotifications(void)
|
||||
{
|
||||
volatile QueuePosition pos;
|
||||
QueuePosition oldpos;
|
||||
QueuePosition head;
|
||||
Snapshot snapshot;
|
||||
|
||||
@ -1933,7 +1932,7 @@ asyncQueueReadAllNotifications(void)
|
||||
LWLockAcquire(NotifyQueueLock, LW_SHARED);
|
||||
/* Assert checks that we have a valid state entry */
|
||||
Assert(MyProcPid == QUEUE_BACKEND_PID(MyBackendId));
|
||||
pos = oldpos = QUEUE_BACKEND_POS(MyBackendId);
|
||||
pos = QUEUE_BACKEND_POS(MyBackendId);
|
||||
head = QUEUE_HEAD;
|
||||
LWLockRelease(NotifyQueueLock);
|
||||
|
||||
|
Reference in New Issue
Block a user