mariadb/storage
Yuchen Pei 18a44b4298
MDEV-29605 Reset queued ping info of all spider connections associated with a closed spider handler
A spider_conn may outlive its associated ha_spider (in the field
queued_ping_spider) used for connecting to and pinging the data
node (a call to spider_db_ping(), guarded by the boolean field
queued_ping). In a call to ha_spider::close() (which is often preceded
with the deletion of the ha_spider itself), many cleanups happen,
including freeing the associated spider_share, which is used by the
spider_conn in spider_db_ping. Therefore it is necessary to reset both
the queued_ping_spider and queued_ping fields, so that any further
spider interaction with the data node will not trigger the call using
the ha_spider including its freed spider_share.

Also out of caution added an assert and internal error in case a
connection has not been established (the db_conn field of type
MYSQL * is NULL), and attempt to connect is skipped because both
queued_connect and queued_ping are false. Note that this unlikely (if
not impossible) scenario would not be a regression caused by this
change, as it strictly falls under the scenario of this bug.
2025-01-15 18:10:16 +11:00
..
archive MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
blackhole MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
cassandra MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
columnstore MDEV-33091 pcre2 headers - handle columnstore 2024-09-05 12:14:06 +10:00
connect enforce no trailing \n in Diagnostic_area messages 2025-01-07 16:31:39 +01:00
csv MDEV-34348: Miscellaneous fixes 2024-11-23 08:14:23 -07:00
example MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
federated MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
federatedx MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
heap MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
innobase enforce no trailing \n in Diagnostic_area messages 2025-01-07 16:31:39 +01:00
maria enforce no trailing \n in Diagnostic_area messages 2025-01-07 16:31:39 +01:00
mroonga MDEV-35574 remove obsolete pthread_exit calls 2024-12-10 12:12:20 +11:00
myisam enforce no trailing \n in Diagnostic_area messages 2025-01-07 16:31:39 +01:00
myisammrg MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
oqgraph Extract some of #3360 fixes to 10.5.x 2024-11-21 22:43:56 +11:00
perfschema MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
rocksdb MDEV-34408: Facilitate the addition of warnings into the build system 2024-11-23 08:14:23 -07:00
sequence MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sphinx MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
spider MDEV-29605 Reset queued ping info of all spider connections associated with a closed spider handler 2025-01-15 18:10:16 +11:00
test_sql_discovery MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
tokudb MDEV-5798: Wrong errorcode for missing partition after TRUNCATE PARTITION 2024-12-05 08:17:35 +01:00