Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21d7c05

Browse filesBrowse 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
Copy full SHA for 21d7c05

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/backend/storage/buffer/bufmgr.c

Copy file name to clipboardExpand all lines: src/backend/storage/buffer/bufmgr.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.