diff options
author | Amit Kapila <akapila@postgresql.org> | 2021-08-30 09:45:20 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2021-08-30 09:45:20 +0530 |
commit | a3f6088c02983b305659ce900506474c685e0dc9 (patch) | |
tree | d792eb0cd414dd51de7d2ec9eb8643090b880b83 | |
parent | 300a79fc92802fb8347900f9df0e8e224eafedca (diff) |
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
-rw-r--r-- | src/backend/replication/logical/origin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/logical/origin.c b/src/backend/replication/logical/origin.c index 01f88eaca89..cb1770c0d5d 100644 --- a/src/backend/replication/logical/origin.c +++ b/src/backend/replication/logical/origin.c @@ -791,7 +791,7 @@ StartupReplicationOrigin(void) FIN_CRC32C(crc); if (file_crc != crc) ereport(PANIC, - (errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED), + (errcode(ERRCODE_DATA_CORRUPTED), errmsg("replication slot checkpoint has wrong checksum %u, expected %u", crc, file_crc))); |