From 95a8bec46a025349688e95bcd661f86ad146161d Mon Sep 17 00:00:00 2001 From: Guy Lichtman Date: Wed, 29 Jan 2014 17:54:54 +0200 Subject: [PATCH] fix for issue #72 . treat failure to hot patch log_slow_statement as non critical --- src/audit_plugin.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/audit_plugin.cc b/src/audit_plugin.cc index 0f3cf16..8b3f2a9 100644 --- a/src/audit_plugin.cc +++ b/src/audit_plugin.cc @@ -1772,7 +1772,7 @@ static int do_hot_patch(void ** trampoline_func_pp, unsigned int * trampoline_si if (res != 0) { //hot patch failed. - sql_print_error("%s unable to hot patch %s (%p). res: %d. Aborting.", + sql_print_error("%s unable to hot patch %s (%p). res: %d.", log_prefix, func_name, target_function, res); return 1; } @@ -1899,7 +1899,9 @@ static int do_hot_patch(void ** trampoline_func_pp, unsigned int * trampoline_si if(do_hot_patch((void **)&trampoline_log_slow_statement, &trampoline_log_slow_statement_size, (void *)log_slow_statement, (void *)audit_log_slow_statement, "log_slow_statement")) { - DBUG_RETURN(1); + sql_print_error("%s Failed hot patch. Continuing as non-critical.", + log_prefix); + } #endif