Skip to content

Commit 21d7c05

Browse files
committed
Fix copy-paste bug in 12f3867 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.
1 parent 96c498d commit 21d7c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5199,7 +5199,7 @@ AbortBufferIO(Buffer buf)
51995199
}
52005200
else
52015201
{
5202-
Assert(!(buf_state & BM_DIRTY));
5202+
Assert(buf_state & BM_DIRTY);
52035203
UnlockBufHdr(buf_hdr, buf_state);
52045204

52055205
/* Issue notice if this is not the first failure... */

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