mirror of
https://github.com/postgres/postgres.git
synced 2026-04-27 17:16:43 -04: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:
parent
96c498d2f8
commit
21d7c05a5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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... */
|
||||
|
|
|
|||
Loading…
Reference in a new issue