]> granicus.if.org Git - postgresql/commitdiff
Remove leftover LWLockRelease() call
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 9 Nov 2012 13:12:09 +0000 (10:12 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 9 Nov 2012 13:19:34 +0000 (10:19 -0300)
This code was refactored in d5497b95 but an extra LWLockRelease call was
left behind.

Per report from Erik Rijkers

src/backend/access/transam/xlogarchive.c

index 93aca7375c376be7120e0488dc5607a2810fbb40..ce9dfaa9601aea39bc1e739241a025159d8122d1 100644 (file)
@@ -342,7 +342,6 @@ ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal)
        GetOldestRestartPoint(&restartRedoPtr, &restartTli);
        XLByteToSeg(restartRedoPtr, restartSegNo);
        XLogFileName(lastRestartPointFname, restartTli, restartSegNo);
-       LWLockRelease(ControlFileLock);
 
        /*
         * construct the command to be executed