Skip to content

Commit 3cf39e6

Browse files
committed
Fix a stupid bug I introduced into XLogFlush().
Commit f11e8be broke this; it was right in Peter's original patch, but I messed it up before committing.
1 parent 3bb592b commit 3cf39e6

File tree

1 file changed

+3
-0
lines changed
  • src/backend/access/transam

1 file changed

+3
-0
lines changed

src/backend/access/transam/xlog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,10 @@ XLogFlush(XLogRecPtr record)
21052105
/* Got the lock; recheck whether request is satisfied */
21062106
LogwrtResult = XLogCtl->LogwrtResult;
21072107
if (XLByteLE(record, LogwrtResult.Flush))
2108+
{
2109+
LWLockRelease(WALWriteLock);
21082110
break;
2111+
}
21092112

21102113
/*
21112114
* Sleep before flush! By adding a delay here, we may give further

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy