Merge changes.

This commit is contained in:
Daniel Nichter
2012-06-03 15:15:56 -04:00
2 changed files with 14 additions and 11 deletions

View File

@@ -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.

View File

@@ -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,