aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-07-02 15:33:59 -0400
committerRobert Haas <rhaas@postgresql.org>2012-07-02 15:33:59 -0400
commit3cf39e6ddbece4000ee56a0f79cdbe71fb2865ff (patch)
treedcc31e37b3a5ff00d59de439e35390065e7da49b
parent3bb592bb20d02093d6488a57c7c4ee94803ddc9a (diff)
downloadpostgresql-3cf39e6ddbece4000ee56a0f79cdbe71fb2865ff.tar.gz
postgresql-3cf39e6ddbece4000ee56a0f79cdbe71fb2865ff.zip
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.
-rw-r--r--src/backend/access/transam/xlog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index aff6136f9a8..3f3f9a3727b 100644
--- a/src/backend/access/transam/xlog.c
+++ b/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