未验证 提交 89a26b26 编写于 作者: C congqixia 提交者: GitHub

Fix redundant init declaration in storage/util.go (#13381)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 322f0c5c
......@@ -70,7 +70,7 @@ func EstimateMemorySize(kv kv.DataKV, key string) (int64, error) {
return total, fmt.Errorf("key %v not in binlog format", key)
}
desc := &descriptorEvent{}
var desc *descriptorEvent
endPos = startPos + int(header.EventLength)
descContent, err := kv.LoadPartial(key, int64(startPos), int64(endPos))
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册