File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ Features
4
4
5
5
- Rebuild the commands with the newest unstable release
6
6
7
+ Bugfix
8
+
9
+ - Fixed command command returning the wrong arity due to a Redis bug
10
+ - Fixed brpop command returning the wrong keystop due to a Redis bug
11
+
7
12
## v.1.1.0 - 09 Feb, 2016
8
13
9
14
Features
Original file line number Diff line number Diff line change 106
106
" noscript"
107
107
],
108
108
"keyStart" : 1 ,
109
- "keyStop" : 1 ,
109
+ "keyStop" : -2 ,
110
110
"step" : 1
111
111
},
112
112
"brpoplpush" : {
141
141
"step" : 0
142
142
},
143
143
"command" : {
144
- "arity" : 0 ,
144
+ "arity" : 1 ,
145
145
"flags" : [
146
146
" readonly" ,
147
147
" loading" ,
Original file line number Diff line number Diff line change @@ -14,8 +14,12 @@ redis.command(function (err, res) {
14
14
}
15
15
16
16
var commands = res . reduce ( function ( prev , current ) {
17
+ // https://github.com/antirez/redis/issues/2598
18
+ if ( current [ 0 ] === 'brpop' && current [ 4 ] === 1 ) {
19
+ current [ 4 ] = - 2 ;
20
+ }
17
21
prev [ current [ 0 ] ] = {
18
- arity : current [ 1 ] ,
22
+ arity : current [ 1 ] || 1 , // https://github.com/antirez/redis/pull/2986
19
23
flags : current [ 2 ] ,
20
24
keyStart : current [ 3 ] ,
21
25
keyStop : current [ 4 ] ,
@@ -24,7 +28,8 @@ redis.command(function (err, res) {
24
28
return prev ;
25
29
} , { } ) ;
26
30
27
- // Future proof. Redis might implement this soon
31
+ // Future proof. Redis might implement this at some point
32
+ // https://github.com/antirez/redis/pull/2982
28
33
if ( ! commands . quit ) {
29
34
commands . quit = {
30
35
arity : 1 ,
You can’t perform that action at this time.
0 commit comments