Skip to content

Commit a3f6088

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 300a79f commit a3f6088

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
@@ -791,7 +791,7 @@ StartupReplicationOrigin(void)
791791
FIN_CRC32C(crc);
792792
if (file_crc != crc)
793793
ereport(PANIC,
794-
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
794+
(errcode(ERRCODE_DATA_CORRUPTED),
795795
errmsg("replication slot checkpoint has wrong checksum %u, expected %u",
796796
crc, file_crc)));
797797

0 commit comments

Comments
 (0)