mirror of
https://github.com/postgres/postgres.git
synced 2026-02-16 00:57:52 -05:00
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:
parent
3bb592bb20
commit
3cf39e6ddb
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue