Commit ea388ba2 authored by unknown's avatar unknown

WL#3072 Maria recovery. Bugfix (segfault of maria_read_log)


storage/maria/ma_recovery.c:
  bugfix ("count" is meaningul only if printing messages)
parent 9a57cc3f
...@@ -2205,12 +2205,9 @@ static int close_all_tables(void) ...@@ -2205,12 +2205,9 @@ static int close_all_tables(void)
for (list_element= maria_open_list ; ; list_element= next_open) for (list_element= maria_open_list ; ; list_element= next_open)
{ {
if (recovery_message_printed == REC_MSG_FLUSH) if (recovery_message_printed == REC_MSG_FLUSH)
fprintf(stderr, " %u", count); fprintf(stderr, " %u", count--);
if ((count--) == 0) if (list_element == NULL)
{
DBUG_ASSERT(list_element == NULL);
break; break;
}
next_open= list_element->next; next_open= list_element->next;
info= (MARIA_HA*)list_element->data; info= (MARIA_HA*)list_element->data;
pthread_mutex_unlock(&THR_LOCK_maria); /* ok, UNDO phase not online yet */ pthread_mutex_unlock(&THR_LOCK_maria); /* ok, UNDO phase not online yet */
......
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