Commit 37210261 authored by Marc Alff's avatar Marc Alff

L0ocal merge

parents 99f83c66 0ebb72b5
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. /* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -117,7 +117,7 @@ void wait_for_free_space(const char *filename, int errors) ...@@ -117,7 +117,7 @@ void wait_for_free_space(const char *filename, int errors)
MY_WAIT_FOR_USER_TO_FIX_PANIC, MY_WAIT_FOR_USER_TO_FIX_PANIC,
MY_WAIT_GIVE_USER_A_MESSAGE * MY_WAIT_FOR_USER_TO_FIX_PANIC ); MY_WAIT_GIVE_USER_A_MESSAGE * MY_WAIT_FOR_USER_TO_FIX_PANIC );
} }
DBUG_EXECUTE_IF("simulate_file_write_error_once", DBUG_EXECUTE_IF("simulate_no_free_space_error",
{ {
(void) sleep(1); (void) sleep(1);
return; return;
......
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. /* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -33,7 +33,7 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags) ...@@ -33,7 +33,7 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
if (unlikely(!Count)) if (unlikely(!Count))
DBUG_RETURN(0); DBUG_RETURN(0);
DBUG_EXECUTE_IF ("simulate_file_write_error_once", DBUG_EXECUTE_IF ("simulate_no_free_space_error",
{ DBUG_SET("+d,simulate_file_write_error");}); { DBUG_SET("+d,simulate_file_write_error");});
for (;;) for (;;)
{ {
...@@ -67,7 +67,7 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags) ...@@ -67,7 +67,7 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
{ {
wait_for_free_space(my_filename(Filedes), errors); wait_for_free_space(my_filename(Filedes), errors);
errors++; errors++;
DBUG_EXECUTE_IF("simulate_file_write_error_once", DBUG_EXECUTE_IF("simulate_no_free_space_error",
{ DBUG_SET("-d,simulate_file_write_error");}); { DBUG_SET("-d,simulate_file_write_error");});
continue; continue;
} }
......
/* Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. /* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -820,10 +820,15 @@ static TABLE_LIST *mysql_ha_find(THD *thd, TABLE_LIST *tables) ...@@ -820,10 +820,15 @@ static TABLE_LIST *mysql_ha_find(THD *thd, TABLE_LIST *tables)
hash_tables= (TABLE_LIST*) my_hash_element(&thd->handler_tables_hash, i); hash_tables= (TABLE_LIST*) my_hash_element(&thd->handler_tables_hash, i);
for (tables= first; tables; tables= tables->next_local) for (tables= first; tables; tables= tables->next_local)
{ {
if ((! *tables->db || if (tables->is_anonymous_derived_table())
! my_strcasecmp(&my_charset_latin1, hash_tables->db, tables->db)) && continue;
! my_strcasecmp(&my_charset_latin1, hash_tables->table_name, if ((! *tables->get_db_name() ||
tables->table_name)) ! my_strcasecmp(&my_charset_latin1,
hash_tables->get_db_name(),
tables->get_db_name())) &&
! my_strcasecmp(&my_charset_latin1,
hash_tables->get_table_name(),
tables->get_table_name()))
break; break;
} }
if (tables) if (tables)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment