PT-148 Fixed Use of uninitialized value in printf

This commit is contained in:
Carlos Salguero
2017-05-29 17:11:02 -03:00
parent 002f47a4e5
commit ad9767be5c
10 changed files with 139 additions and 21 deletions

View File

@@ -228,6 +228,11 @@ sub name {
return $self->{hostname} || $self->{dsn_name} || 'unknown host';
}
sub description {
my ($self) = @_;
return sprintf("%s -> %s:%s", $self->name(), $self->{dsn}->{h}, $self->{dsn}->{P} || 'socket');
}
# This returns the server_id.
# For cluster nodes, since server_id is unreliable, we use a combination of
# variables to create an id string that is unique.