]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix incorrect error code in StartupReplicationOrigin().
authorAmit Kapila <akapila@postgresql.org>
Mon, 30 Aug 2021 03:56:49 +0000 (09:26 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 30 Aug 2021 03:56:49 +0000 (09:26 +0530)
commit8ba3bad4c362ef71bf6a13ecf4ae5e26066a4876
tree32ab7bedc938c23a3a10f0222fa6ad82d31f7cc9
parent9a33ed8fa10354bdb3f12d87ccd9f387bec338d1
Fix incorrect error code in StartupReplicationOrigin().

ERRCODE_CONFIGURATION_LIMIT_EXCEEDED was used for checksum failure, use
ERRCODE_DATA_CORRUPTED instead.

Reported-by: Tatsuhito Kasahara
Author: Tatsuhito Kasahara
Backpatch-through: 9.6, where it was introduced
Discussion: https://postgr.es/m/CAP0=ZVLHtYffs8SOWcFJWrBGoRzT9QQbk+_aP+E5AHLNXiOorA@mail.gmail.com
src/backend/replication/logical/origin.c