Fix a stupid bug I introduced into XLogFlush().

Commit f11e8be3e8 broke this; it was right
in Peter's original patch, but I messed it up before committing.
This commit is contained in:
Robert Haas 2012-07-02 15:33:59 -04:00
parent 3bb592bb20
commit 3cf39e6ddb
1 changed files with 3 additions and 0 deletions

View File

@ -2105,7 +2105,10 @@ XLogFlush(XLogRecPtr record)
/* Got the lock; recheck whether request is satisfied */
LogwrtResult = XLogCtl->LogwrtResult;
if (XLByteLE(record, LogwrtResult.Flush))
{
LWLockRelease(WALWriteLock);
break;
}
/*
* Sleep before flush! By adding a delay here, we may give further