mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Improve default error message for optimize/repair table
This commit is contained in:
@ -2388,12 +2388,17 @@ send_result_message:
|
|||||||
}
|
}
|
||||||
|
|
||||||
default: // Probably HA_ADMIN_INTERNAL_ERROR
|
default: // Probably HA_ADMIN_INTERNAL_ERROR
|
||||||
|
{
|
||||||
|
char buf[ERRMSGSIZE+20];
|
||||||
|
uint length=my_snprintf(buf, ERRMSGSIZE,
|
||||||
|
"Unknown - internal error %d during operation",
|
||||||
|
result_code);
|
||||||
protocol->store("error", 5, system_charset_info);
|
protocol->store("error", 5, system_charset_info);
|
||||||
protocol->store("Unknown - internal error during operation", 41
|
protocol->store(buf, length, system_charset_info);
|
||||||
, system_charset_info);
|
|
||||||
fatal_error=1;
|
fatal_error=1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (fatal_error)
|
if (fatal_error)
|
||||||
table->table->s->version=0; // Force close of table
|
table->table->s->version=0; // Force close of table
|
||||||
else if (open_for_modify)
|
else if (open_for_modify)
|
||||||
|
Reference in New Issue
Block a user