Skip to content

Commit 8ba3bad

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 9a33ed8 commit 8ba3bad

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
@@ -784,7 +784,7 @@ StartupReplicationOrigin(void)
784784
FIN_CRC32C(crc);
785785
if (file_crc != crc)
786786
ereport(PANIC,
787-
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
787+
(errcode(ERRCODE_DATA_CORRUPTED),
788788
errmsg("replication slot checkpoint has wrong checksum %u, expected %u",
789789
crc, file_crc)));
790790

0 commit comments

Comments
 (0)