From 0cf0af07411fb85dc9c08b78fea77c37880795a9 Mon Sep 17 00:00:00 2001 From: FrancoZhang <80463983+FrancoZhangVip@users.noreply.github.com> Date: Mon, 19 Feb 2024 19:13:12 +0800 Subject: [PATCH] Update listpack.go (#769) --- internal/rdb/structure/listpack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rdb/structure/listpack.go b/internal/rdb/structure/listpack.go index 3c4f9019..70038e9f 100644 --- a/internal/rdb/structure/listpack.go +++ b/internal/rdb/structure/listpack.go @@ -88,7 +88,7 @@ func readListpackEntry(rd io.Reader) string { uval = uint64(ReadUint16(rd)) negstart = uint64(1) << 15 negmax = 65535 // uint16_max - _ = ReadBytes(rd, lpEncodeBacklen(2)) // encode: 1byte, int: 2byte + _ = ReadBytes(rd, lpEncodeBacklen(1+2)) // encode: 1byte, int: 2byte } else if (fireByte & lpEncoding24BitIntMask) == lpEncoding24BitInt { // 24bit int