inspectkv: address comments

This commit is contained in:
xia
2015-12-24 11:57:53 +08:00
parent c09f413842
commit 76ec2e2223

View File

@ -341,6 +341,7 @@ func GetTableRecordsCount(txn kv.Transaction, t table.Table, startHandle int64)
for it.Valid() && strings.HasPrefix(it.Key(), prefix) {
handle, err := tables.DecodeRecordKeyHandle(it.Key())
if err != nil {
it.Close()
return 0, errors.Trace(err)
}