mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
fix a couple things for MySQL 5.5
This commit is contained in:
@@ -1987,7 +1987,7 @@ sub main {
|
||||
PTDEBUG && _d($sql);
|
||||
eval { $dbh_child->do($sql); }; # Should block against parent.
|
||||
PTDEBUG && _d($EVAL_ERROR); # Parent inserted value 0.
|
||||
$sql = "DROP TABLE $db_tbl";
|
||||
$sql = "COMMIT";
|
||||
PTDEBUG && _d($sql);
|
||||
$dbh_child->do($sql);
|
||||
exit;
|
||||
@@ -2001,6 +2001,9 @@ sub main {
|
||||
eval { $dbh->do($sql); };
|
||||
PTDEBUG && _d($EVAL_ERROR);
|
||||
waitpid($pid, 0);
|
||||
$sql = "DROP TABLE $db_tbl";
|
||||
PTDEBUG && _d($sql);
|
||||
$dbh->do($sql);
|
||||
}
|
||||
|
||||
# If there's an --interval argument, run forever or till specified.
|
||||
|
@@ -26,16 +26,16 @@ is_deeply(
|
||||
pt_deadlock_logger::parse_deadlocks($innodb_status_sample),
|
||||
{
|
||||
'1' => {
|
||||
db => '',
|
||||
db => 'test',
|
||||
hostname => 'localhost',
|
||||
id => 1,
|
||||
idx => '',
|
||||
idx => 'PRIMARY',
|
||||
ip => '',
|
||||
lock_mode => '',
|
||||
lock_type => '',
|
||||
lock_mode => 'X',
|
||||
lock_type => 'RECORD',
|
||||
query => 'update a set movie_id=96 where id =2',
|
||||
server => '',
|
||||
tbl => '',
|
||||
tbl => 'a',
|
||||
thread => '19',
|
||||
ts => '2011-12-12T22:52:42',
|
||||
txn_id => 0,
|
||||
@@ -45,16 +45,16 @@ is_deeply(
|
||||
wait_hold => 'w'
|
||||
},
|
||||
'2' => {
|
||||
db => '',
|
||||
db => 'test',
|
||||
hostname => 'localhost',
|
||||
id => 2,
|
||||
idx => '',
|
||||
idx => 'PRIMARY',
|
||||
ip => '',
|
||||
lock_mode => '',
|
||||
lock_type => '',
|
||||
lock_mode => 'X',
|
||||
lock_type => 'RECORD',
|
||||
query => 'update a set movie_id=98 where id =4',
|
||||
server => '',
|
||||
tbl => '',
|
||||
tbl => 'a',
|
||||
thread => '18',
|
||||
ts => '2011-12-12T22:52:42',
|
||||
txn_id => 0,
|
||||
|
Reference in New Issue
Block a user