From fcdc76c28952608524d6e5a388bc7b04ad8de09f Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Jul 2007 22:27:58 +0200 Subject: in mysql_unlock_tables(), do thr_unlock() AFTER external_unlock(). it means, {update,restore}_status() should be called in external_lock, not in thr_unlock. Only affects storage engines that support TL_WRITE_CONCURRENT. --- storage/csv/ha_tina.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'storage/csv/ha_tina.h') diff --git a/storage/csv/ha_tina.h b/storage/csv/ha_tina.h index 0c667237c0f..e52e9cd28e5 100644 --- a/storage/csv/ha_tina.h +++ b/storage/csv/ha_tina.h @@ -81,6 +81,8 @@ class ha_tina: public handler bool records_is_known; private: + int curr_lock_type; + bool get_write_pos(off_t *end_pos, tina_set *closest_hole); int open_update_temp_file_if_needed(); int init_tina_writer(); @@ -153,6 +155,8 @@ public: bool check_if_incompatible_data(HA_CREATE_INFO *info, uint table_changes); + int external_lock(THD *thd, int lock_type); + THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type); -- cgit v1.2.1