Commit 345465a6 authored by 张振华's avatar 张振华 Committed by vipwzw

gosec fix

parent 62134778
......@@ -205,7 +205,10 @@ func (mvccs *KVMVCCStore) saveKVSets(kvset []*types.KeyValue) {
storeBatch.Set(kvset[i].Key, kvset[i].Value)
}
}
storeBatch.Write()
err := storeBatch.Write()
if err != nil {
klog.Error("store kvmvcc saveKVSets to db failed")
}
}
func (mvccs *KVMVCCStore) checkVersion(height int64) ([]*types.KeyValue, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment