mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-5901: EITS: killing the server leaves statistical tables in "marked as crashed" state
- Do like sp.cc does with mysql.proc table: call HA_EXTRA_FLUSH after we've modified a statistical table.
This commit is contained in:
@ -529,6 +529,8 @@ public:
|
|||||||
store_stat_fields();
|
store_stat_fields();
|
||||||
if ((err= stat_file->ha_write_row(record[0])))
|
if ((err= stat_file->ha_write_row(record[0])))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
/* Make change permanent and avoid 'table is marked as crashed' errors */
|
||||||
|
table->file->extra(HA_EXTRA_FLUSH);
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user