Skip to content

Commit cae9c79

Browse files
authored andcommitted
Bug #49137 Replication failure on SBR/MBR + multi-table DROP TEMPORARY TABLE
Fixed valgrind failure on PB2.
1 parent ccc3a46 commit cae9c79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/log_event.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,8 +2110,8 @@ START SLAVE; . Query: '%s'", expected_error, thd->query);
21102110
has already been dropped. To ignore such irrelevant "table does
21112111
not exist errors", we silently clear the error if TEMPORARY was used.
21122112
*/
2113-
if (thd->lex->drop_temporary &&
2114-
thd->net.last_errno == ER_BAD_TABLE_ERROR && !expected_error)
2113+
if (thd->net.last_errno == ER_BAD_TABLE_ERROR &&
2114+
!expected_error && thd->lex->drop_temporary)
21152115
thd->clear_error();
21162116
/*
21172117
If we expected a non-zero error code, and we don't get the same error

0 commit comments

Comments
 (0)