Fix copy-paste bug in 12f3867f553 triggering an assert after a write error

Andres Freund <andres@anarazel.de>

Commit: 21d7c05a5cf7637cbdf2739006936bb9d279d505
Author: Andres Freund <andres@anarazel.de>
Date: 2023-04-07T08:02:46Z
Releases: 16.0
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.

Files

PathChange+/−
src/backend/storage/buffer/bufmgr.c modified +1 −1