fix unnecessage warning

This commit is contained in:
chenxiaobin19 2022-03-21 20:17:02 +08:00
parent bc5a489b4b
commit 3ea2ac37e9
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;
}