Fix misplaced translator comments

They did not immediately precede the code they were applying to.
This commit is contained in:
Peter Eisentraut 2024-08-27 16:15:28 +02:00
parent 7229ebe011
commit dc26ff2f22
1 changed files with 4 additions and 7 deletions

View File

@ -1021,11 +1021,8 @@ CheckAndGetDbnameFromConninfo(void)
dbname = walrcv_get_dbname_from_conninfo(PrimaryConnInfo);
if (dbname == NULL)
ereport(ERROR,
/*
* translator: dbname is a specific option; %s is a GUC variable name
*/
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
/* translator: dbname is a specific option; %s is a GUC variable name */
errmsg("slot synchronization requires dbname to be specified in %s",
"primary_conninfo"));
return dbname;
@ -1058,8 +1055,8 @@ ValidateSlotSyncParams(int elevel)
if (PrimarySlotName == NULL || *PrimarySlotName == '\0')
{
ereport(elevel,
/* translator: %s is a GUC variable name */
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
/* translator: %s is a GUC variable name */
errmsg("slot synchronization requires %s to be defined", "primary_slot_name"));
return false;
}
@ -1072,8 +1069,8 @@ ValidateSlotSyncParams(int elevel)
if (!hot_standby_feedback)
{
ereport(elevel,
/* translator: %s is a GUC variable name */
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
/* translator: %s is a GUC variable name */
errmsg("slot synchronization requires %s to be enabled",
"hot_standby_feedback"));
return false;
@ -1086,8 +1083,8 @@ ValidateSlotSyncParams(int elevel)
if (PrimaryConnInfo == NULL || *PrimaryConnInfo == '\0')
{
ereport(elevel,
/* translator: %s is a GUC variable name */
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
/* translator: %s is a GUC variable name */
errmsg("slot synchronization requires %s to be defined",
"primary_conninfo"));
return false;