Content-Length: 259130 | pFad | http://github.com/postgrespro/postgres/commit/21d7c05a5cf7637cbdf2739006936bb9d279d505

C9 Fix copy-paste bug in 12f3867f553 triggering an assert after a write … · postgrespro/postgres@21d7c05 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/21d7c05a5cf7637cbdf2739006936bb9d279d505

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy