[Commits] Rev 4061: MDEV-5901: EITS: killing the server leaves statistical tables in "marked as crashed" state in file:///home/psergey/dev2/10.0-cp/

Sergey Petrunya psergey at askmonty.org
Wed Mar 19 14:32:58 EET 2014


At file:///home/psergey/dev2/10.0-cp/

------------------------------------------------------------
revno: 4061
revision-id: psergey at askmonty.org-20140319123257-lb2gv0xi9ry3zvs2
parent: psergey at askmonty.org-20140317094556-7o0pq47p8w4smmtr
committer: Sergey Petrunya <psergey at askmonty.org>
branch nick: 10.0-cp
timestamp: Wed 2014-03-19 16:32:57 +0400
message:
  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.
=== modified file 'sql/sql_statistics.cc'
--- a/sql/sql_statistics.cc	2013-09-14 01:09:36 +0000
+++ b/sql/sql_statistics.cc	2014-03-19 12:32:57 +0000
@@ -529,6 +529,8 @@ class Stat_table
       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;
   }



More information about the commits mailing list