Skip to content

Commit bf79638

Browse files
committed
Added error code E_NOT_BUSY
1 parent e0f59fd commit bf79638

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/AnyEvent/RipeRedis.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use strict;
55
use warnings;
66
use base qw( Exporter );
77

8-
our $VERSION = '0.36';
8+
our $VERSION = '0.37_01';
99

1010
use AnyEvent::RipeRedis::Error;
1111

@@ -15,7 +15,7 @@ use Scalar::Util qw( looks_like_number weaken );
1515
use Digest::SHA qw( sha1_hex );
1616
use Carp qw( croak );
1717

18-
our %ERROR_CODES;
18+
my %ERROR_CODES;
1919

2020
BEGIN {
2121
%ERROR_CODES = %AnyEvent::RipeRedis::Error::ERROR_CODES;
@@ -90,6 +90,7 @@ my %ERR_PREFS_MAP = (
9090
ASK => E_ASK,
9191
MOVED => E_MOVED,
9292
CLUSTERDOWN => E_CLUSTER_DOWN,
93+
NOTBUSY => E_NOT_BUSY,
9394
);
9495

9596
my %EVAL_CACHE;

lib/AnyEvent/RipeRedis/Error.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use 5.008000;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '0.36';
7+
our $VERSION = '0.37_01';
88

99
our %ERROR_CODES = (
1010
E_CANT_CONN => 1,
@@ -32,6 +32,7 @@ our %ERROR_CODES = (
3232
E_ASK => 25,
3333
E_MOVED => 26,
3434
E_CLUSTER_DOWN => 27,
35+
E_NOT_BUSY => 28,
3536
);
3637

3738

t/01-error-codes.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use 5.008000;
22
use strict;
33
use warnings;
44

5-
use Test::More tests => 25;
5+
use Test::More tests => 26;
66
use AnyEvent::RipeRedis qw( :err_codes );
77

88
is( E_CANT_CONN, 1, 'E_CANT_CONN' );
@@ -30,3 +30,4 @@ is( E_TRY_AGAIN, 24, 'E_TRY_AGAIN' );
3030
is( E_ASK, 25, 'E_ASK' );
3131
is( E_MOVED, 26, 'E_MOVED' );
3232
is( E_CLUSTER_DOWN, 27, 'E_CLUSTER_DOWN' );
33+
is( E_NOT_BUSY, 28, 'E_NOT_BUSY' );

0 commit comments

Comments
 (0)