]> granicus.if.org Git - postgresql/commitdiff
Remove unnecessary assignment.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 28 Oct 2014 18:26:20 +0000 (20:26 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 28 Oct 2014 18:28:07 +0000 (20:28 +0200)
Reported by MauMau.

src/backend/storage/lmgr/lwlock.c

index cee3f082dea6af1180d1b14d3228777ee0301a29..88d9cbec21568791126acef6ace2a7025e0bf3ff 100644 (file)
@@ -969,8 +969,6 @@ LWLockWaitForVar(LWLock *l, uint64 *valptr, uint64 oldval, uint64 *newval)
                 */
                proc->lwWaiting = true;
                proc->lwWaitMode = LW_WAIT_UNTIL_FREE;
-               proc->lwWaitLink = NULL;
-
                /* waiters are added to the front of the queue */
                proc->lwWaitLink = lock->head;
                if (lock->head == NULL)