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.
pull/3/head
Robert Haas 13 years ago
parent 3bb592bb20
commit 3cf39e6ddb
  1. 3
      src/backend/access/transam/xlog.c

@ -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

Loading…
Cancel
Save