Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:42:15 JST 2012
Kouhei Sutou 2012-04-16 14:52:48 +0900 (Mon, 16 Apr 2012) New Revision: b48f3b88b11ef172a9bf80ce214d7c0957ba57b6 https://github.com/mroonga/mroonga/commit/b48f3b88b11ef172a9bf80ce214d7c0957ba57b6 Log: mariadb5523: add NULL check into auto_repair() This is for ER_CANT_OPEN_FILE error caused in open(). It's just a workaround. We should try it again later. refs #1339 Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+3 -1) =================================================================== --- ha_mroonga.cpp 2012-04-16 10:00:38 +0900 (aaeb4d2) +++ ha_mroonga.cpp 2012-04-16 14:52:48 +0900 (b319cd4) @@ -10249,7 +10249,9 @@ bool ha_mroonga::auto_repair(int error) const { MRN_DBUG_ENTER_METHOD(); bool crashed; - if (share->wrapper_mode) + // TODO: We should consider about creating share for error = + // ER_CANT_OPEN_FILE. The following code just ignores the error. + if (share && share->wrapper_mode) { crashed = wrapper_auto_repair(error); } else { -------------- next part -------------- HTML����������������������������...Download