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

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/13428/head
congqixia 2021-12-15 11:13:10 +08:00 committed by GitHub
parent 322f0c5c5c
commit 89a26b2679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {