Kouhei Sutou
null+****@clear*****
Wed May 8 12:18:47 JST 2013
Kouhei Sutou 2013-05-08 12:18:47 +0900 (Wed, 08 May 2013) New Revision: a3778ee56a9529a428343385c3e81fea8ff8632a https://github.com/mroonga/mroonga/commit/a3778ee56a9529a428343385c3e81fea8ff8632a Message: Reduce variable scope Modified files: mrn_table.cpp Modified: mrn_table.cpp (+1 -3) =================================================================== --- mrn_table.cpp 2013-05-08 11:58:39 +0900 (74ee20a) +++ mrn_table.cpp 2013-05-08 12:18:47 +0900 (2071a7d) @@ -885,9 +885,6 @@ TABLE_SHARE *mrn_get_table_share(TABLE_LIST *table_list, int *error) { uint key_length; TABLE_SHARE *share; -#if MYSQL_VERSION_ID >= 50500 - my_hash_value_type hash_value; -#endif THD *thd = current_thd; MRN_DBUG_ENTER_FUNCTION(); #if MYSQL_VERSION_ID >= 50603 && !defined(MRN_MARIADB_P) @@ -902,6 +899,7 @@ TABLE_SHARE *mrn_get_table_share(TABLE_LIST *table_list, int *error) #endif #endif #if MYSQL_VERSION_ID >= 50500 + my_hash_value_type hash_value; hash_value = my_calc_hash(&table_def_cache, (uchar*) key, key_length); #if MYSQL_VERSION_ID >= 100002 && defined(MRN_MARIADB_P) share = get_table_share(thd, table_list->db, table_list->table_name, key, -------------- next part -------------- HTML����������������������������...Download