mariadb/storage
Yuchen Pei 2556fe1ab1
MDEV-31996 Create connection on demand in spider_db_delete_all_rows
When spider_db_delete_all_rows() is called, the supplied spider->conns
may have already been freed. The existing mechanism has spider_trx own
the connections in trx_conn_hash and it may free a conn during the
cleanup after a query. When running a delete query and if the table is
in the table cache, ha_spider::open() would not be called which would
recreate the conn. So we recreate the conn when necessary during
delete by calling spider_check_trx_and_get_conn().

We also reduce code duplication as delete_all_rows() and truncate()
has almost identical code, and there's no need to assign
wide_handler->sql_command in these functions because it has already
been correctly assigned.
2023-10-11 16:42:35 +11:00
..
archive Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
blackhole Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
cassandra MDEV-31358: Update description for MariaDB debian/rpm packages 2023-07-03 17:45:58 +10:00
connect MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
csv
example Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
federated Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
federatedx Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
heap Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
innobase MDEV-30658 lock_row_lock_current_waits counter in information_schema.innodb_metrics may become negative 2023-10-05 18:27:54 +03:00
maria Fix use of uninitialized variable 2023-07-03 15:46:58 +02:00
mroonga MDEV-31970 ASAN errors in grn_obj_unlink / ha_mroonga::clear_indexes upon index operations 2023-09-08 19:12:35 +02:00
myisam MDEV-28054 Various crashes upon INSERT/UPDATE after changing Aria settings 2023-05-02 23:37:10 +03:00
myisammrg
oqgraph oqgraph: remove clang warnings 2023-09-08 10:50:15 +01:00
perfschema MDEV-29091: Correct event_name in PFS for wait caused by FOR UPDATE 2023-02-15 14:36:05 +00:00
rocksdb MDEV-29993: myrocks_hotbackup.1 and test suite files installed when engine is disabled 2023-09-20 08:18:57 +10:00
sequence Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
sphinx Merge branch '10.3' into 10.4 2022-10-26 14:55:47 +02:00
spider MDEV-31996 Create connection on demand in spider_db_delete_all_rows 2023-10-11 16:42:35 +11:00
test_sql_discovery MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
tokudb MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00