Skip to content

Commit

Permalink
version 1.04
Browse files Browse the repository at this point in the history
  • Loading branch information
komarov committed Sep 25, 2013
1 parent 2615ac6 commit 0c6e140
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for Perl module App::Switchman

1.04 2013-09-25
* fixed prepare_zknodes

1.03 2013-09-23
* improved error handling
* optimistic reconnect
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = switchman
version = 1.03
version = 1.04
author = Oleg Komarov <[email protected]>
copyright_holder = Yandex LLC
copyright_year = 2013
Expand Down
5 changes: 3 additions & 2 deletions lib/App/Switchman.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package App::Switchman;

our $VERSION = '1.03';
our $VERSION = '1.04';

=head1 NAME
Expand Down Expand Up @@ -359,7 +359,8 @@ sub prepare_zknodes

for my $path (@$nodes) {
unless ($self->zkh->exists($path)) {
if (my $error = $self->zkh->get_error) {
my $error = $self->zkh->get_error;
if ($error && $error != ZNONODE) {
$self->_error("Failed to check $path existence: $error");
}
$self->zkh->create($path, _node_data(),
Expand Down

0 comments on commit 0c6e140

Please sign in to comment.