diff options
author | Andres Freund | 2023-04-07 08:02:46 +0000 |
---|---|---|
committer | Andres Freund | 2023-04-07 08:02:46 +0000 |
commit | 21d7c05a5cf7637cbdf2739006936bb9d279d505 (patch) | |
tree | a49299d313ed15a62d6e3be2ee5c5207aaec4b4c | |
parent | 96c498d2f8ce5f0082c64793f94e2d0cfa7d7605 (diff) |
Fix copy-paste bug in 12f3867f553 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.
-rw-r--r-- | src/backend/storage/buffer/bufmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 92714a9fe2..908a8934bd 100644 --- 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... */ |