mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix a stupid bug I introduced into XLogFlush().
Commit f11e8be3e812cdbbc139c1b4e49141378b118dee 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
@ -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…
x
Reference in New Issue
Block a user