Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)