From 46c1bc15e313df558dbe0ce30712ede45e390e16 Mon Sep 17 00:00:00 2001 From: chenby Date: Wed, 22 May 2019 11:17:25 +0800 Subject: [PATCH] fix decode bug --- .../com/moilioncircle/redis/replicator/cmd/RedisCodec.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/moilioncircle/redis/replicator/cmd/RedisCodec.java b/src/main/java/com/moilioncircle/redis/replicator/cmd/RedisCodec.java index e0bba9d1..c4dad0c0 100644 --- a/src/main/java/com/moilioncircle/redis/replicator/cmd/RedisCodec.java +++ b/src/main/java/com/moilioncircle/redis/replicator/cmd/RedisCodec.java @@ -106,9 +106,12 @@ public byte[] decode(byte[] bytes) { } break; default: + s.put((byte)'\\'); s.put(bytes[i]); break; } + } else { + s.put((byte)'\\'); } break; default: