1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Improve error messages from Aria

- Error on commit now returns HA_ERR_COMMIT_ERROR instead of
  HA_ERR_INTERNAL_ERROR
- If checkpoint fails, it will now print out where it failed.
This commit is contained in:
Monty
2021-09-15 19:18:11 +03:00
parent 6be0ddae5e
commit f03fee06b0
6 changed files with 32 additions and 7 deletions

View File

@ -4217,6 +4217,9 @@ void handler::print_error(int error, myf errflag)
case HA_ERR_TABLE_IN_FK_CHECK:
textno= ER_TABLE_IN_FK_CHECK;
break;
case HA_ERR_COMMIT_ERROR:
textno= ER_ERROR_DURING_COMMIT;
break;
default:
{
/* The error was "unknown" to this function.