]> 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:26:20 +0000 (20:26 +0200)
Reported by MauMau.

src/backend/storage/lmgr/lwlock.c

index bcec17335b8f70831204a2b9a4301b3112ea9f00..719181c2089f3fbd29be66b1a2b52abdf8e833d3 100644 (file)
@@ -997,8 +997,6 @@ LWLockWaitForVar(LWLock *lock, 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)