[Commits] Rev 2884: issue an informative error message for a common Aria problem when opening a table in http://bazaar.launchpad.net/~maria-captains/maria/5.3/

serg at askmonty.org serg at askmonty.org
Fri Jan 14 22:51:59 EET 2011


At http://bazaar.launchpad.net/~maria-captains/maria/5.3/

------------------------------------------------------------
revno: 2884
revision-id: sergii at pisem.net-20110114205155-lu2rw0pkesbjm83c
parent: sergii at pisem.net-20110114200251-90gv2xr3d0qzc5ll
committer: Sergei Golubchik <sergii at pisem.net>
branch nick: 5.3-monty
timestamp: Fri 2011-01-14 21:51:55 +0100
message:
  issue an informative error message for a common Aria problem when opening a table
  (incorrect block size)
-------------- next part --------------
=== modified file 'storage/maria/ma_open.c'
--- a/storage/maria/ma_open.c	2011-01-14 11:03:41 +0000
+++ b/storage/maria/ma_open.c	2011-01-14 20:51:55 +0000
@@ -488,6 +488,10 @@ MARIA_HA *maria_open(const char *name, i
                            (uint) share->base.block_size,
                            (uint) maria_block_size));
       my_errno=HA_ERR_UNSUPPORTED;
+      my_printf_error(my_errno, "Wrong block size %u; Expected %u",
+                      MYF(0),
+                      (uint) share->base.block_size, 
+                      (uint) maria_block_size);
       goto err;
     }
 



More information about the commits mailing list