!1612 删除非必要的告警

Merge pull request !1612 from chenxiaobin/fixwarning
This commit is contained in:
opengauss-bot 2022-03-24 13:26:18 +00:00 committed by Gitee
commit 588299a50a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 0 additions and 12 deletions

View File

@ -1828,10 +1828,6 @@ void install_label_hook()
*/
void set_gsaudit_prehook(ProcessUtility_hook_type func)
{
if (next_ProcessUtility_hook != NULL) {
ereport(WARNING, (errmsg("next_ProcessUtility_hook in security_plugin cannot be set since it's not null")));
return;
}
next_ProcessUtility_hook = func;
}

View File

@ -110,10 +110,6 @@ void InitHypopg()
*/
void set_hypopg_prehook(ProcessUtility_hook_type func)
{
if (prev_utility_hook != NULL) {
ereport(WARNING, (errmsg("prev_utility_hook in hypopg cannot be set since it's not null")));
return;
}
prev_utility_hook = func;
}

View File

@ -130,10 +130,6 @@ static const int g_auditFuncMapNum = sizeof(g_auditFuncMap) / sizeof(AuditFuncMa
*/
void set_pgaudit_prehook(ProcessUtility_hook_type func)
{
if (prev_ProcessUtility != NULL) {
ereport(WARNING, (errmsg("prev_ProcessUtility in pgaudit cannot be set since it's not null")));
return;
}
prev_ProcessUtility = func;
}