Commit d754d3d9 authored by Monty's avatar Monty Committed by Sergei Golubchik

Less noise in the error log

- Updated error messages for recovery
- Changed printing of debug sync point information to make it fit 80 char
parent 24926352
...@@ -201,13 +201,12 @@ void debug_sync_end(void) ...@@ -201,13 +201,12 @@ void debug_sync_end(void)
/* Print statistics. */ /* Print statistics. */
{ {
char llbuff[22]; sql_print_information("Debug sync points hit: %lld",
sql_print_information("Debug sync points hit: %22s", debug_sync_global.dsp_hits);
llstr(debug_sync_global.dsp_hits, llbuff)); sql_print_information("Debug sync points executed: %lld",
sql_print_information("Debug sync points executed: %22s", debug_sync_global.dsp_executed);
llstr(debug_sync_global.dsp_executed, llbuff)); sql_print_information("Debug sync points max active per thread: %lld",
sql_print_information("Debug sync points max active per thread: %22s", debug_sync_global.dsp_max_active);
llstr(debug_sync_global.dsp_max_active, llbuff));
} }
} }
......
...@@ -516,8 +516,10 @@ Event_queue::empty_queue() ...@@ -516,8 +516,10 @@ Event_queue::empty_queue()
uint i; uint i;
DBUG_ENTER("Event_queue::empty_queue"); DBUG_ENTER("Event_queue::empty_queue");
DBUG_PRINT("enter", ("Purging the queue. %u element(s)", queue.elements)); DBUG_PRINT("enter", ("Purging the queue. %u element(s)", queue.elements));
sql_print_information("Event Scheduler: Purging the queue. %u events",
queue.elements); if (queue.elements)
sql_print_information("Event Scheduler: Purging the queue. %u events",
queue.elements);
/* empty the queue */ /* empty the queue */
for (i= queue_first_element(&queue); for (i= queue_first_element(&queue);
i <= queue_last_element(&queue); i <= queue_last_element(&queue);
......
...@@ -2403,7 +2403,7 @@ int ha_recover(HASH *commit_list) ...@@ -2403,7 +2403,7 @@ int ha_recover(HASH *commit_list)
DBUG_RETURN(0); DBUG_RETURN(0);
if (info.commit_list) if (info.commit_list)
sql_print_information("Starting crash recovery..."); sql_print_information("Starting table crash recovery...");
for (info.len= MAX_XID_LIST_SIZE ; for (info.len= MAX_XID_LIST_SIZE ;
info.list==0 && info.len > MIN_XID_LIST_SIZE; info.len/=2) info.list==0 && info.len > MIN_XID_LIST_SIZE; info.len/=2)
...@@ -2437,7 +2437,7 @@ int ha_recover(HASH *commit_list) ...@@ -2437,7 +2437,7 @@ int ha_recover(HASH *commit_list)
DBUG_RETURN(1); DBUG_RETURN(1);
} }
if (info.commit_list) if (info.commit_list)
sql_print_information("Crash recovery finished."); sql_print_information("Crash table recovery finished.");
DBUG_RETURN(0); DBUG_RETURN(0);
} }
......
...@@ -1224,17 +1224,15 @@ bool Master_info_index::init_all_master_info() ...@@ -1224,17 +1224,15 @@ bool Master_info_index::init_all_master_info()
if (!err_num) // No Error on read Master_info if (!err_num) // No Error on read Master_info
{ {
if (global_system_variables.log_warnings > 1) if (global_system_variables.log_warnings > 2)
sql_print_information("Reading of all Master_info entries succeeded"); sql_print_information("Reading of all Master_info entries succeeded");
DBUG_RETURN(0); DBUG_RETURN(0);
} }
if (succ_num) // Have some Error and some Success if (succ_num) // Have some Error and some Success
{
sql_print_warning("Reading of some Master_info entries failed"); sql_print_warning("Reading of some Master_info entries failed");
DBUG_RETURN(1); else
} sql_print_error("Reading of all Master_info entries failed!");
sql_print_error("Reading of all Master_info entries failed!");
DBUG_RETURN(1); DBUG_RETURN(1);
error: error:
...@@ -1431,7 +1429,7 @@ bool Master_info_index::add_master_info(Master_info *mi, bool write_to_file) ...@@ -1431,7 +1429,7 @@ bool Master_info_index::add_master_info(Master_info *mi, bool write_to_file)
if (unlikely(abort_loop) || if (unlikely(abort_loop) ||
!my_hash_insert(&master_info_hash, (uchar*) mi)) !my_hash_insert(&master_info_hash, (uchar*) mi))
{ {
if (global_system_variables.log_warnings > 1) if (global_system_variables.log_warnings > 2)
sql_print_information("Added new Master_info '%.*s' to hash table", sql_print_information("Added new Master_info '%.*s' to hash table",
(int) mi->connection_name.length, (int) mi->connection_name.length,
mi->connection_name.str); mi->connection_name.str);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment