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

This commit is contained in:
unknown 2008-02-06 22:06:37 +02:00
parent a1834802c9
commit b2457010f4

View file

@ -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;
}