forked from huawei/openGauss-server
fix unnecessage warning
This commit is contained in:
parent
bc5a489b4b
commit
3ea2ac37e9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue