Commit b2457010 authored by unknown's avatar unknown

Fixed bug in _ma_lock_key_del() when key link is locked and there is no freed pages

parent a1834802
......@@ -1095,6 +1095,9 @@ my_bool _ma_apply_undo_key_delete(MARIA_HA *info, LSN undo_lsn,
This is safe as we in this case don't write current_key_del into
the redo log and during recover we are not updating key_del.
@retval 1 Use page at end of file
@retval 0 Use page at share->current_key_del
*/
my_bool _ma_lock_key_del(MARIA_HA *info, my_bool insert_at_end)
......@@ -1119,7 +1122,7 @@ my_bool _ma_lock_key_del(MARIA_HA *info, my_bool insert_at_end)
share->current_key_del= share->state.key_del;
pthread_mutex_unlock(&share->intern_lock);
}
return 0;
return share->current_key_del == HA_OFFSET_ERROR;
}
......
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