PT-133 Fixed sandbox won't start if autocommit=0 in my.cnf

This commit is contained in:
Carlos Salguero
2017-05-05 14:36:50 -03:00
parent 8eaacd86a6
commit 095815793e
3 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ Changelog for Percona Toolkit
v3.0.3
* Fixed bug PT-133 : Sandbox won't start correctly if autocommit=0 in my.cnf
* Fixed bug PT-132 : pt-online-schema-change should imply --no-drop-new-table
* Fixed bug PT-130 : Fixed pt-mext not working with not empty Rsa_public_key
* Fixed bug PT-128 : pt-stalk ps include memory usage outputs

View File

@@ -1,3 +1,4 @@
SET autocommit=1;
DROP DATABASE IF EXISTS `sakila`;
CREATE DATABASE `sakila`;
USE `sakila`;
@@ -449,3 +450,6 @@ LEFT JOIN sakila.film_category fc
LEFT JOIN sakila.category c
ON fc.category_id = c.category_id
GROUP BY a.actor_id, a.first_name, a.last_name;
COMMIT;
FLUSH TABLES;

View File

@@ -350,7 +350,7 @@ case $opt in
../util/check-load-data
ping=$(/tmp/12345/use -ss -e "SELECT MD5(RAND())")
/tmp/12345/use -e "REPLACE INTO percona_test.sentinel (id, ping) VALUES (1, '$ping')";
/tmp/12345/use -e "SET AUTOCOMMIT=1; REPLACE INTO percona_test.sentinel (id, ping) VALUES (1, '$ping')";
echo -n "Waiting for replication to finish..."
for i in $(_seq 60); do
pong=$(/tmp/12347/use -ss -e "SELECT ping FROM percona_test.sentinel WHERE id=1 AND ping='$ping'" 2>/dev/null)