modify daily_merge error and forbid modify cluster_id and cluster

This commit is contained in:
maosy
2021-08-17 14:30:27 +08:00
committed by wangzelin.wzl
parent 0c581542a7
commit 8bd9721cfb
3 changed files with 15 additions and 2 deletions

View File

@ -1724,6 +1724,10 @@ int ObSetConfigResolver::resolve(const ParseNode& parse_tree)
if (OB_FAIL(check_enable_log_archive(item.value_.str()))) {
LOG_WARN("cannot set enable log archive true", K(ret));
}
} else if (0 == STRCMP(item.name_.ptr(), CLUSTER_ID)) {
ret = OB_OP_NOT_ALLOW;
LOG_WARN("cluster_id is not allowed to modify");
LOG_USER_ERROR(OB_OP_NOT_ALLOW, "alter the parameter cluster_id");
}
}
}