diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2014-03-19 16:32:57 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2014-03-19 16:32:57 +0400 |
commit | ebd4a820040f2c62f0fdde305767a8c7355e7b15 (patch) | |
tree | 7ac6cbf36a13ea43ebc403a6291505c2a66d2ef6 /sql/sql_statistics.cc | |
parent | 727896df2741b13f93349f15c75eddc73322a36b (diff) | |
download | mariadb-git-ebd4a820040f2c62f0fdde305767a8c7355e7b15.tar.gz |
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.
Diffstat (limited to 'sql/sql_statistics.cc')
-rw-r--r-- | sql/sql_statistics.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index 94cbf3b946a..2d73199d2c0 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -529,6 +529,8 @@ public: store_stat_fields(); if ((err= stat_file->ha_write_row(record[0]))) return TRUE; + /* Make change permanent and avoid 'table is marked as crashed' errors */ + table->file->extra(HA_EXTRA_FLUSH); } return FALSE; } |