[MDEV-26366] Remove interdependency between spider_db_mbase_util and spd_db_conn.cc Created: 2021-08-14  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Spider
Fix Version/s: 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2

Type: Task Priority: Minor
Reporter: Nayuta Yanagisawa (Inactive) Assignee: Yuchen Pei
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-26367 Move helper functions in spd_db_conn.... Open
Epic Link: Spider Refactoring

 Description   

The functions in spd_db_conn.cc and spider_mbase_share class are interdependent. For example, spider_db_mbase_util::open_item_func calls spider_db_print_item_type(), and spider_db_print_item_type() calls spider_db_mbase_util::open_item_func via spider_db_open_item_func(). As a result, it is difficult to follow the flow of execution.

Extract the functions used by spider_db_mbase_util from spd_db_conn.cc, and redefine them as non-virtual functions of the spider_db_util.

NOTE: Some functions named spider_db_XX, which calls member functions of ha_spider class, should be rather placed in a file like ha_spider_helper.cc. A typical example is spider_db_append_key_where(). Such functions are out of the scope of the present issue.


Generated at Thu Feb 08 09:44:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.