diff options
author | monty@donna.mysql.com <> | 2000-10-05 01:00:36 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-10-05 01:00:36 +0300 |
commit | a7c5cc01b3d2afb5c2465e39e401cd7f337bf3dc (patch) | |
tree | f453103c3ed0bd73e54de2afb70d718fdc4c01ad /myisam/mi_open.c | |
parent | 527113d370cfd590dfd7e64d52a8470a1cf918ca (diff) | |
download | mariadb-git-a7c5cc01b3d2afb5c2465e39e401cd7f337bf3dc.tar.gz |
Small fixes
Diffstat (limited to 'myisam/mi_open.c')
-rw-r--r-- | myisam/mi_open.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c index f962d0485c8..cb19011fea7 100644 --- a/myisam/mi_open.c +++ b/myisam/mi_open.c @@ -178,6 +178,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) ((share->state.changed & STATE_CRASHED) || (my_disable_locking && share->state.open_count))) { + DBUG_PRINT("error",("Table is marked as crashed")); my_errno=((share->state.changed & STATE_CRASHED_ON_REPAIR) ? HA_ERR_CRASHED_ON_REPAIR : HA_ERR_CRASHED); goto err; @@ -209,6 +210,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) #elif !defined(USE_RAID) if (share->base.raid_type) { + DBUG_PRINT("error",("Table uses RAID but we don't have RAID support")); my_errno=HA_ERR_UNSUPPORTED; goto err; } @@ -219,6 +221,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) if (share->base.max_key_length > MI_MAX_KEY_BUFF || keys > MI_MAX_KEY || key_parts >= MI_MAX_KEY * MI_MAX_KEY_SEG) { + DBUG_PRINT("error",("Wrong key info: Max_key_length: %d keys: %d key_parts: %d", share->base.max_key_length, keys, key_parts)); my_errno=HA_ERR_UNSUPPORTED; goto err; } |