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

Commit453dae7

Browse files
peterepull[bot]
authored andcommitted
Fix lack of message pluralization
1 parent5fdd592 commit453dae7

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

‎src/backend/replication/slot.c

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,11 +1263,18 @@ ReportSlotInvalidation(ReplicationSlotInvalidationCause cause,
12631263
switch (cause)
12641264
{
12651265
caseRS_INVAL_WAL_REMOVED:
1266-
hint= true;
1267-
appendStringInfo(&err_detail,_("The slot's restart_lsn %X/%X exceeds the limit by %llu bytes."),
1268-
LSN_FORMAT_ARGS(restart_lsn),
1269-
(unsigned long long) (oldestLSN-restart_lsn));
1270-
break;
1266+
{
1267+
unsigned long longex=oldestLSN-restart_lsn;
1268+
1269+
hint= true;
1270+
appendStringInfo(&err_detail,
1271+
ngettext("The slot's restart_lsn %X/%X exceeds the limit by %llu byte.",
1272+
"The slot's restart_lsn %X/%X exceeds the limit by %llu bytes.",
1273+
ex),
1274+
LSN_FORMAT_ARGS(restart_lsn),
1275+
ex);
1276+
break;
1277+
}
12711278
caseRS_INVAL_HORIZON:
12721279
appendStringInfo(&err_detail,_("The slot conflicted with xid horizon %u."),
12731280
snapshotConflictHorizon);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp