Browse Source

Bug #49137 Replication failure on SBR/MBR + multi-table DROP TEMPORARY TABLE

Fixed valgrind failure on PB2.

sql/log_event.cc:
  Added code to fix valgrind failure on PB2.
pull/374/head
unknown 16 years ago
parent
commit
0a64fbc517
  1. 4
      sql/log_event.cc

4
sql/log_event.cc

@ -2110,8 +2110,8 @@ compare_errors:
has already been dropped. To ignore such irrelevant "table does
not exist errors", we silently clear the error if TEMPORARY was used.
*/
if (thd->lex->drop_temporary &&
thd->net.last_errno == ER_BAD_TABLE_ERROR && !expected_error)
if (thd->net.last_errno == ER_BAD_TABLE_ERROR &&
!expected_error && thd->lex->drop_temporary)
thd->clear_error();
/*
If we expected a non-zero error code, and we don't get the same error

Loading…
Cancel
Save