projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96c498d
)
Fix copy-paste bug in 12f3867f553 triggering an assert after a write error
author
Andres Freund
<andres@anarazel.de>
Fri, 7 Apr 2023 08:02:46 +0000
(
01:02
-0700)
committer
Andres Freund
<andres@anarazel.de>
Fri, 7 Apr 2023 08:02:46 +0000
(
01:02
-0700)
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.
src/backend/storage/buffer/bufmgr.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/buffer/bufmgr.c
b/src/backend/storage/buffer/bufmgr.c
index 92714a9fe2dd73ff3a9f659fdc30f4e0ba821cf6..908a8934bd469014f83a413fca93f16450fc5795 100644
(file)
--- a/
src/backend/storage/buffer/bufmgr.c
+++ b/
src/backend/storage/buffer/bufmgr.c
@@
-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... */