Loading libmysqld/lib_sql.cc +3 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,8 @@ C_MODE_START static my_bool emb_read_query_result(MYSQL *mysql); C_MODE_END void THD::clear_data_list() { while (first_data) Loading @@ -59,6 +61,7 @@ void THD::clear_data_list() cur_data= 0; } C_MODE_START /* Reads error information from the MYSQL_DATA and puts Loading sql/handler.h +11 −16 Original line number Diff line number Diff line Loading @@ -800,14 +800,6 @@ typedef int (*get_partitions_in_range_iter)(partition_info *part_info, PARTITION_ITERATOR *part_iter); /* Initialize the iterator to return a single partition with given part_id */ inline void init_single_partition_iterator(uint32 part_id, PARTITION_ITERATOR *part_iter); /* Initialize the iterator to enumerate all partitions */ inline void init_all_partitions_iterator(partition_info *part_info, PARTITION_ITERATOR *part_iter); class partition_info : public Sql_alloc { public: Loading Loading @@ -1007,7 +999,9 @@ class partition_info : public Sql_alloc #ifdef WITH_PARTITION_STORAGE_ENGINE uint32 get_next_partition_id_range(struct st_partition_iter* part_iter); inline void init_single_partition_iterator(uint32 part_id, /* Initialize the iterator to return a single partition with given part_id */ static inline void init_single_partition_iterator(uint32 part_id, PARTITION_ITERATOR *part_iter) { part_iter->part_nums.start= part_id; Loading @@ -1015,7 +1009,8 @@ inline void init_single_partition_iterator(uint32 part_id, part_iter->get_next= get_next_partition_id_range; } inline /* Initialize the iterator to enumerate all partitions */ static inline void init_all_partitions_iterator(partition_info *part_info, PARTITION_ITERATOR *part_iter) { Loading @@ -1034,7 +1029,7 @@ void init_all_partitions_iterator(partition_info *part_info, DESCRIPTION A routine to check for subpartitioning for improved readability of code */ inline static inline bool is_sub_partitioned(partition_info *part_info) { return (part_info->subpart_type == NOT_A_PARTITION ? FALSE : TRUE); } Loading @@ -1050,7 +1045,7 @@ bool is_sub_partitioned(partition_info *part_info) A routine to check for number of partitions for improved readability of code */ inline static inline uint get_tot_partitions(partition_info *part_info) { return part_info->no_parts * Loading Loading @@ -1924,22 +1919,22 @@ handlerton *ha_checktype(THD *thd, enum legacy_db_type database_type, bool no_substitute, bool report_error); inline enum legacy_db_type ha_legacy_type(const handlerton *db_type) static inline enum legacy_db_type ha_legacy_type(const handlerton *db_type) { return (db_type == NULL) ? DB_TYPE_UNKNOWN : db_type->db_type; } inline const char *ha_resolve_storage_engine_name(const handlerton *db_type) static inline const char *ha_resolve_storage_engine_name(const handlerton *db_type) { return db_type == NULL ? "UNKNOWN" : db_type->name; } inline bool ha_check_storage_engine_flag(const handlerton *db_type, uint32 flag) static inline bool ha_check_storage_engine_flag(const handlerton *db_type, uint32 flag) { return db_type == NULL ? FALSE : test(db_type->flags & flag); } inline bool ha_storage_engine_is_enabled(const handlerton *db_type) static inline bool ha_storage_engine_is_enabled(const handlerton *db_type) { return (db_type && db_type->create) ? (db_type->state == SHOW_OPTION_YES) : FALSE; Loading Loading
libmysqld/lib_sql.cc +3 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,8 @@ C_MODE_START static my_bool emb_read_query_result(MYSQL *mysql); C_MODE_END void THD::clear_data_list() { while (first_data) Loading @@ -59,6 +61,7 @@ void THD::clear_data_list() cur_data= 0; } C_MODE_START /* Reads error information from the MYSQL_DATA and puts Loading
sql/handler.h +11 −16 Original line number Diff line number Diff line Loading @@ -800,14 +800,6 @@ typedef int (*get_partitions_in_range_iter)(partition_info *part_info, PARTITION_ITERATOR *part_iter); /* Initialize the iterator to return a single partition with given part_id */ inline void init_single_partition_iterator(uint32 part_id, PARTITION_ITERATOR *part_iter); /* Initialize the iterator to enumerate all partitions */ inline void init_all_partitions_iterator(partition_info *part_info, PARTITION_ITERATOR *part_iter); class partition_info : public Sql_alloc { public: Loading Loading @@ -1007,7 +999,9 @@ class partition_info : public Sql_alloc #ifdef WITH_PARTITION_STORAGE_ENGINE uint32 get_next_partition_id_range(struct st_partition_iter* part_iter); inline void init_single_partition_iterator(uint32 part_id, /* Initialize the iterator to return a single partition with given part_id */ static inline void init_single_partition_iterator(uint32 part_id, PARTITION_ITERATOR *part_iter) { part_iter->part_nums.start= part_id; Loading @@ -1015,7 +1009,8 @@ inline void init_single_partition_iterator(uint32 part_id, part_iter->get_next= get_next_partition_id_range; } inline /* Initialize the iterator to enumerate all partitions */ static inline void init_all_partitions_iterator(partition_info *part_info, PARTITION_ITERATOR *part_iter) { Loading @@ -1034,7 +1029,7 @@ void init_all_partitions_iterator(partition_info *part_info, DESCRIPTION A routine to check for subpartitioning for improved readability of code */ inline static inline bool is_sub_partitioned(partition_info *part_info) { return (part_info->subpart_type == NOT_A_PARTITION ? FALSE : TRUE); } Loading @@ -1050,7 +1045,7 @@ bool is_sub_partitioned(partition_info *part_info) A routine to check for number of partitions for improved readability of code */ inline static inline uint get_tot_partitions(partition_info *part_info) { return part_info->no_parts * Loading Loading @@ -1924,22 +1919,22 @@ handlerton *ha_checktype(THD *thd, enum legacy_db_type database_type, bool no_substitute, bool report_error); inline enum legacy_db_type ha_legacy_type(const handlerton *db_type) static inline enum legacy_db_type ha_legacy_type(const handlerton *db_type) { return (db_type == NULL) ? DB_TYPE_UNKNOWN : db_type->db_type; } inline const char *ha_resolve_storage_engine_name(const handlerton *db_type) static inline const char *ha_resolve_storage_engine_name(const handlerton *db_type) { return db_type == NULL ? "UNKNOWN" : db_type->name; } inline bool ha_check_storage_engine_flag(const handlerton *db_type, uint32 flag) static inline bool ha_check_storage_engine_flag(const handlerton *db_type, uint32 flag) { return db_type == NULL ? FALSE : test(db_type->flags & flag); } inline bool ha_storage_engine_is_enabled(const handlerton *db_type) static inline bool ha_storage_engine_is_enabled(const handlerton *db_type) { return (db_type && db_type->create) ? (db_type->state == SHOW_OPTION_YES) : FALSE; Loading