Skip to content

Commit 7681388

Browse files
author
chenby
committed
mem
1 parent bfc4a28 commit 7681388

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/moilioncircle/redis/rdb/cli/ext/rct/MemRdbVisitor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,11 @@ public long random() {
826826
}
827827

828828
public long element(byte[] element) {
829-
return element.length;
829+
if (parseLong(element)[1] != -1) {
830+
return 8;
831+
} else {
832+
return element.length;
833+
}
830834
}
831835

832836
public long[] parseLong(byte[] array) {

0 commit comments

Comments
 (0)