Browse files

oops!

  • Loading branch information...
1 parent 16232c6 commit 5d192f5bf2135e6bb4c5554af8fcab0d964fe88b Robey Pointer committed Sep 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/ri/src/main/java/org/jredis/ri/alphazero/JRedisFutureSupport.java
View
2 core/ri/src/main/java/org/jredis/ri/alphazero/JRedisFutureSupport.java
@@ -216,7 +216,7 @@ public FutureLong linsert(String key, boolean after, byte[] oldvalue, byte[] new
byte[] keybytes = null;
if ((keybytes = getKeyBytes(key)) == null)
throw new IllegalArgumentException ("invalid key => ["+key+"]");
- byte[][] bulk = new byte[3][];
+ byte[][] bulk = new byte[4][];
bulk[0] = keybytes;
bulk[1] = (after ? "AFTER" : "BEFORE").getBytes();
bulk[2] = oldvalue;

0 comments on commit 5d192f5

Please sign in to comment.