Skip to content

Commit bad6cef

Browse files
author
Amit Kapila
committed
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
1 parent dcac5e7 commit bad6cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/logical/origin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ StartupReplicationOrigin(void)
796796
FIN_CRC32C(crc);
797797
if (file_crc != crc)
798798
ereport(PANIC,
799-
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
799+
(errcode(ERRCODE_DATA_CORRUPTED),
800800
errmsg("replication slot checkpoint has wrong checksum %u, expected %u",
801801
crc, file_crc)));
802802

0 commit comments

Comments
 (0)