1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-08 06:27:57 +03:00

small cleanup

This commit is contained in:
Sergei Golubchik
2011-11-28 23:15:12 +01:00
parent b27d93f347
commit ec38c1bbd7
6 changed files with 19 additions and 47 deletions

View File

@@ -2987,6 +2987,18 @@ public:
LEX_STRING get_invoker_host() { return invoker_host; }
bool has_invoker() { return invoker_user.length > 0; }
void print_aborted_warning(uint threshold, const char *reason)
{
if (global_system_variables.log_warnings > threshold)
{
Security_context *sctx= &main_security_ctx;
sql_print_warning(ER(ER_NEW_ABORTING_CONNECTION),
thread_id, (db ? db : "unconnected"),
sctx->user ? sctx->user : "unauthenticated",
sctx->host_or_ip, reason);
}
}
private:
/*
This reference points to the table arena when the expression