• Monty's avatar
    Improve error reporting in Aria · 3d241eb9
    Monty authored
    This patch fixes the following issues in Aria error reporting in case
    of read errors & crashed tables:
    - Added the table name to the most error messages, including in case of
      read errors or when encrypting/decrypting a table. The format for
      error messages was changed sligtly to accomodate logging of errors
      from lower level routines.
    - If we got an read error from storage (hard disk, ssd, S3 etc) we only
      reported 'table is crashed'. Now the error number from the storage
      is reported.
    - Added checking of read failure from records_in_range()
    - Calls to ma_set_fatal_error() did not inform the SQL level of
      errors (to not spam the user with multiple error messages).
      Now the first error message and any fatal error messages are reported
      to the user.
    3d241eb9
ma_cache.c 4.03 KB