mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix copy-paste bug in 12f3867f55
triggering an assert after a write error
The same condition accidentally was copied to both branches. Manual testing confirms that otherwise the error recovery path works fine. Found while reviewing the logical-decoding-on-standby patch.
This commit is contained in:
@ -5199,7 +5199,7 @@ AbortBufferIO(Buffer buf)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Assert(!(buf_state & BM_DIRTY));
|
Assert(buf_state & BM_DIRTY);
|
||||||
UnlockBufHdr(buf_hdr, buf_state);
|
UnlockBufHdr(buf_hdr, buf_state);
|
||||||
|
|
||||||
/* Issue notice if this is not the first failure... */
|
/* Issue notice if this is not the first failure... */
|
||||||
|
Reference in New Issue
Block a user