mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35510 ASAN build crashes during bootstrap
Avoid ASAN failure by collecting statistics from Result objects before cleaning them up. In related single-table cases, statistics are maintained directly by the single-table update and delete functions.
This commit is contained in:
committed by
Dave Gosselin
parent
6cff704e57
commit
d3c9a2ee21
@@ -43,6 +43,7 @@ template <typename T> class SQL_I_List;
|
||||
class Sql_cmd_delete final : public Sql_cmd_dml
|
||||
{
|
||||
public:
|
||||
ha_rows deleted{0};
|
||||
Sql_cmd_delete(bool multitable_arg)
|
||||
: orig_multitable(multitable_arg), multitable(multitable_arg),
|
||||
save_protocol(NULL)
|
||||
@@ -66,6 +67,12 @@ public:
|
||||
|
||||
void remove_order_by_without_limit(THD *thd);
|
||||
|
||||
void get_dml_stat (ha_rows &found, ha_rows &changed) override
|
||||
{
|
||||
found= 0;
|
||||
changed= deleted;
|
||||
}
|
||||
|
||||
protected:
|
||||
/**
|
||||
@brief Perform precheck of table privileges for delete statements
|
||||
|
Reference in New Issue
Block a user