Permalink
Browse files

make mysqlock verbose

  • Loading branch information...
1 parent 00d4052 commit fb985be7497de470be2cf7c8c3634c42bcf7141a Kazuho Oku committed Dec 3, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 mysqllock
View
@@ -57,6 +57,7 @@ my $dbh = DBI->connect($dsn, $user, $password)
$dbh->{mysql_auto_reconnect} = 0;
# prepare
+print STDERR "issuing lock statement: $before\n";
$dbh->do($before)
or die $dbh->errstr;
@@ -71,6 +72,7 @@ while (! wait) {}
my $code = $?;
# cleanup
+print STDERR "issuing unlock statement: $after\n";
$dbh->do($after)
or die $dbh->errstr;

0 comments on commit fb985be

Please sign in to comment.