Commit 3cf39e6d authored by Robert Haas's avatar Robert Haas

Fix a stupid bug I introduced into XLogFlush().

Commit f11e8be3 broke this; it was right
in Peter's original patch, but I messed it up before committing.
parent 3bb592bb
...@@ -2105,7 +2105,10 @@ XLogFlush(XLogRecPtr record) ...@@ -2105,7 +2105,10 @@ XLogFlush(XLogRecPtr record)
/* Got the lock; recheck whether request is satisfied */ /* Got the lock; recheck whether request is satisfied */
LogwrtResult = XLogCtl->LogwrtResult; LogwrtResult = XLogCtl->LogwrtResult;
if (XLByteLE(record, LogwrtResult.Flush)) if (XLByteLE(record, LogwrtResult.Flush))
{
LWLockRelease(WALWriteLock);
break; break;
}
/* /*
* Sleep before flush! By adding a delay here, we may give further * Sleep before flush! By adding a delay here, we may give further
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment