Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbad6cef

Browse files
author
Amit Kapila
committed
Fix incorrect error code in StartupReplicationOrigin().
ERRCODE_CONFIGURATION_LIMIT_EXCEEDED was used for checksum failure, useERRCODE_DATA_CORRUPTED instead.Reported-by: Tatsuhito KasaharaAuthor: Tatsuhito KasaharaBackpatch-through: 9.6, where it was introducedDiscussion:https://postgr.es/m/CAP0=ZVLHtYffs8SOWcFJWrBGoRzT9QQbk+_aP+E5AHLNXiOorA@mail.gmail.com
1 parentdcac5e7 commitbad6cef

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)

[8]ページ先頭

©2009-2025 Movatter.jp