summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorunknown <Li-Bing.Song@sun.com>2010-10-16 20:03:44 +0800
committerunknown <Li-Bing.Song@sun.com>2010-10-16 20:03:44 +0800
commit211552ccee98e381a14dfaae754528d9f6ed0494 (patch)
treeb80bfb21f72caa6f3993cf3e8c3af746eff108ad /dbug
parent54c308d37d4c1485cacc204ce845b665dc981579 (diff)
downloadmariadb-git-211552ccee98e381a14dfaae754528d9f6ed0494.tar.gz
Bug#56118 STOP SLAVE does not wait till trx with CREATE TMP TABLE ends,
replication aborts When recieving a 'SLAVE STOP' command, slave SQL thread will roll back the transaction and stop immidiately if there is only transactional table updated, even through 'CREATE|DROP TEMPOARY TABLE' statement are in it. But These statements can never be rolled back. Because the temporary tables to the user session mapping remain until 'RESET SLAVE', Therefore it will abort SQL thread with an error that the table already exists or doesn't exist, when it restarts and executes the whole transaction again. After this patch, SQL thread always waits till the transaction ends and then stops, if 'CREATE|DROP TEMPOARY TABLE' statement are in it. mysql-test/extra/rpl_tests/rpl_stop_slave.test: Auxiliary file which is used to test this bug. mysql-test/suite/rpl/t/rpl_stop_slave.test: Test case for this bug. sql/slave.cc: Checking if OPTION_KEEP_LOG is set. If it is set, SQL thread should wait until the transaction ends. sql/sql_parse.cc: Add a debug point for testing this bug.
Diffstat (limited to 'dbug')
0 files changed, 0 insertions, 0 deletions