Bug#13997024 SEGV IN SYNC_ARRAY_CELL_PRINT PRINTING OUT LONG SEMAPHORE WAIT DATA

Backport fix from mysql-5.6.
This commit is contained in:
Sunny Bains 2013-01-10 10:01:50 +11:00
parent 0319ba84b9
commit d77f5c79e5
2 changed files with 8 additions and 0 deletions

View file

@ -936,6 +936,8 @@ sync_array_print_long_waits(
return(FALSE);
}
sync_array_enter(sync_primary_wait_array);
for (i = 0; i < sync_primary_wait_array->n_cells; i++) {
double diff;
@ -970,6 +972,8 @@ sync_array_print_long_waits(
}
}
sync_array_exit(sync_primary_wait_array);
if (noticed) {
fprintf(stderr,
"InnoDB: ###### Starts InnoDB Monitor"

View file

@ -932,6 +932,8 @@ sync_array_print_long_waits(
return(FALSE);
}
sync_array_enter(sync_primary_wait_array);
for (i = 0; i < sync_primary_wait_array->n_cells; i++) {
double diff;
@ -966,6 +968,8 @@ sync_array_print_long_waits(
}
}
sync_array_exit(sync_primary_wait_array);
if (noticed) {
fprintf(stderr,
"InnoDB: ###### Starts InnoDB Monitor"