Commit 0e05dc81 authored by Sergei Golubchik's avatar Sergei Golubchik

rename handler::ha_set_lock_type() -> handler::set_lock_type(),

because it's not a handler convenience wrapper
parent 84d13a7e
...@@ -5285,7 +5285,7 @@ void signal_log_not_needed(struct handlerton, char *log_file) ...@@ -5285,7 +5285,7 @@ void signal_log_not_needed(struct handlerton, char *log_file)
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
void handler::ha_set_lock_type(enum thr_lock_type lock) void handler::set_lock_type(enum thr_lock_type lock)
{ {
table->reginfo.lock_type= lock; table->reginfo.lock_type= lock;
} }
......
...@@ -2952,7 +2952,7 @@ public: ...@@ -2952,7 +2952,7 @@ public:
inline int ha_write_tmp_row(uchar *buf); inline int ha_write_tmp_row(uchar *buf);
inline int ha_update_tmp_row(const uchar * old_data, uchar * new_data); inline int ha_update_tmp_row(const uchar * old_data, uchar * new_data);
virtual void ha_set_lock_type(enum thr_lock_type lock); virtual void set_lock_type(enum thr_lock_type lock);
friend enum icp_result handler_index_cond_check(void* h_arg); friend enum icp_result handler_index_cond_check(void* h_arg);
}; };
......
...@@ -1304,7 +1304,7 @@ int mysql_multi_update_prepare(THD *thd) ...@@ -1304,7 +1304,7 @@ int mysql_multi_update_prepare(THD *thd)
tl->updating= 0; tl->updating= 0;
/* Update TABLE::lock_type accordingly. */ /* Update TABLE::lock_type accordingly. */
if (!tl->placeholder() && !using_lock_tables) if (!tl->placeholder() && !using_lock_tables)
tl->table->file->ha_set_lock_type(tl->lock_type); tl->table->file->set_lock_type(tl->lock_type);
} }
} }
for (tl= table_list; tl; tl= tl->next_local) for (tl= table_list; tl; tl= tl->next_local)
......
...@@ -1714,9 +1714,9 @@ my_bool ha_myisammrg::register_query_cache_dependant_tables(THD *thd ...@@ -1714,9 +1714,9 @@ my_bool ha_myisammrg::register_query_cache_dependant_tables(THD *thd
} }
void ha_myisammrg::ha_set_lock_type(enum thr_lock_type lock) void ha_myisammrg::set_lock_type(enum thr_lock_type lock)
{ {
handler::ha_set_lock_type(lock); handler::set_lock_type(lock);
if (children_l != NULL) if (children_l != NULL)
{ {
for (TABLE_LIST *child_table= children_l;; for (TABLE_LIST *child_table= children_l;;
......
...@@ -155,5 +155,5 @@ public: ...@@ -155,5 +155,5 @@ public:
Query_cache *cache, Query_cache *cache,
Query_cache_block_table **block, Query_cache_block_table **block,
uint *n); uint *n);
virtual void ha_set_lock_type(enum thr_lock_type lock); virtual void set_lock_type(enum thr_lock_type lock);
}; };
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