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:
Andres Freund 2023-04-07 01:02:46 -07:00
parent 96c498d2f8
commit 21d7c05a5c
1 changed files with 1 additions and 1 deletions

View File

@ -5199,7 +5199,7 @@ AbortBufferIO(Buffer buf)
}
else
{
Assert(!(buf_state & BM_DIRTY));
Assert(buf_state & BM_DIRTY);
UnlockBufHdr(buf_hdr, buf_state);
/* Issue notice if this is not the first failure... */