Skip to content

Commit 0a143c3

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 e1efc5b commit 0a143c3

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy