mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
fixed bug #2342
"Running ANALYZE TABLE on bdb table inside a transaction hangs server thread" 1. added new status HA_ADMIN_REJECT and processing of it in mysql_admin_table 2. got ha_berkley::analyze to return HA_ADMIN_REJECT if there are any transactions with the table..
This commit is contained in:
@@ -1330,6 +1330,12 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
||||
net_store_data(packet, "Operation failed");
|
||||
break;
|
||||
|
||||
case HA_ADMIN_REJECT:
|
||||
net_store_data(packet,"status");
|
||||
net_store_data(packet,"Operation need committed state");
|
||||
open_for_modify= false;
|
||||
break;
|
||||
|
||||
case HA_ADMIN_ALREADY_DONE:
|
||||
net_store_data(packet, "status");
|
||||
net_store_data(packet, "Table is already up to date");
|
||||
|
||||
Reference in New Issue
Block a user