diff options
-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; } |