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
@@ -45,6 +45,7 @@ bool compare_record(const TABLE *table);
|
||||
class Sql_cmd_update final : public Sql_cmd_dml
|
||||
{
|
||||
public:
|
||||
ha_rows found{0}, updated{0};
|
||||
Sql_cmd_update(bool multitable_arg)
|
||||
: orig_multitable(multitable_arg), multitable(multitable_arg)
|
||||
{}
|
||||
@@ -65,6 +66,13 @@ public:
|
||||
|
||||
void set_as_multitable() { multitable= true; }
|
||||
|
||||
void get_dml_stat (ha_rows &found, ha_rows &changed) override
|
||||
{
|
||||
|
||||
found= this->found;
|
||||
changed= this->updated;
|
||||
}
|
||||
|
||||
protected:
|
||||
/**
|
||||
@brief Perform precheck of table privileges for update statements
|
||||
|
Reference in New Issue
Block a user