Add _d() to Percona/XtraDB/Cluster.pm.

This commit is contained in:
Daniel Nichter
2012-11-17 12:28:47 -07:00
parent a71759640a
commit e47a84daba

View File

@@ -119,5 +119,13 @@ sub _find_full_gcomm_addr {
return $full_gcomm;
}
sub _d {
my ($package, undef, $line) = caller 0;
@_ = map { (my $temp = $_) =~ s/\n/\n# /g; $temp; }
map { defined $_ ? $_ : 'undef' }
@_;
print STDERR "# $package:$line $PID ", join(' ', @_), "\n";
}
1;
}