Navigation Menu

Skip to content

Commit

Permalink
mariadb5523: add NULL check into auto_repair()
Browse files Browse the repository at this point in the history
This is for ER_CANT_OPEN_FILE error caused in open().

It's just a workaround. We should try it again later.

refs #1339
  • Loading branch information
kou committed Apr 16, 2012
1 parent 138ccf8 commit b48f3b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ha_mroonga.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit b48f3b8

Please sign in to comment.