!1635 修复om安装时gs_guc设置 '' 给sync_standby_names解析错误的问题。

Merge pull request !1635 from 胡正超/anyxmaster
This commit is contained in:
opengauss-bot 2022-03-31 14:53:24 +00:00 committed by Gitee
commit ea938c947e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 6 additions and 0 deletions

View File

@ -1229,6 +1229,12 @@ parse_next_sync_groups(char **pgroup, char *result)
static int
transform_az_name(char *config_value, char *allAZString, int allAZStringBufLen, const char *data_dir)
{
if (strcmp(config_value, "''") == 0) {
errno_t rc = strncpy_s(allAZString, allAZStringBufLen, config_value, strlen(config_value));
securec_check_c(rc, "\0", "\0");
return SUCCESS;
}
char *azString = NULL;
char *buf = allAZString;
int buflen = allAZStringBufLen;