summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2004-04-08 09:25:48 +0300
committerunknown <heikki@hundin.mysql.fi>2004-04-08 09:25:48 +0300
commit26764a7bfac0881974849c0d53a58646177fbd58 (patch)
tree382adf1b1c6333397904fff85bc68bc8109aec6b /sql/sql_select.cc
parentd94cf5fbfb6fed68c7c76fd9d10c7a6a25214d7d (diff)
downloadmariadb-git-26764a7bfac0881974849c0d53a58646177fbd58.tar.gz
sql_select.cc:
Fix a glitch reported by Philippe Lewicki on the general mailing list: do not print a warning to the .err log if read_key fails with a lock wait timeout error 146 sql/sql_select.cc: Fix a glitch reported by Philippe Lewicki on the general mailing list: do not print a warning to the .err log if read_key fails with a lock wait timeout error 146
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 057f0bd9483..b299e3af0b7 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -4995,7 +4995,8 @@ join_read_key(JOIN_TAB *tab)
tab->ref.key_length,HA_READ_KEY_EXACT);
if (error && error != HA_ERR_KEY_NOT_FOUND)
{
- sql_print_error("read_key: Got error %d when reading table '%s'",error,
+ if (error != HA_ERR_LOCK_DEADLOCK && error != HA_ERR_LOCK_WAIT_TIMEOUT)
+ sql_print_error("read_key: Got error %d when reading table '%s'",error,
table->path);
table->file->print_error(error,MYF(0));
return 1;