Commit 76c68c8a authored by liuyuhang's avatar liuyuhang Committed by vipwzw

modify strict true

parent 0fa36c1e
...@@ -252,12 +252,12 @@ func (mvccs *KVMVCCStore) Del(req *types.StoreDel) ([]byte, error) { ...@@ -252,12 +252,12 @@ func (mvccs *KVMVCCStore) Del(req *types.StoreDel) ([]byte, error) {
for i := maxVersion; i >= req.Height; i-- { for i := maxVersion; i >= req.Height; i-- {
hash, err := mvccs.mvcc.GetVersionHash(i) hash, err := mvccs.mvcc.GetVersionHash(i)
if err != nil { if err != nil {
kmlog.Debug("store kvmvcc Del GetVersionHash failed", "height", i, "maxVersion", maxVersion) kmlog.Warn("store kvmvcc Del GetVersionHash failed", "height", i, "maxVersion", maxVersion)
continue continue
} }
kvlist, err := mvccs.mvcc.DelMVCC(hash, i, false) kvlist, err := mvccs.mvcc.DelMVCC(hash, i, true)
if err != nil { if err != nil {
kmlog.Debug("store kvmvcc Del DelMVCC failed", "height", i, "err", err) kmlog.Warn("store kvmvcc Del DelMVCC failed", "height", i, "err", err)
continue continue
} }
kvset = append(kvset, kvlist...) kvset = append(kvset, kvlist...)
...@@ -315,12 +315,12 @@ func (mvccs *KVMVCCStore) checkVersion(height int64) ([]*types.KeyValue, error) ...@@ -315,12 +315,12 @@ func (mvccs *KVMVCCStore) checkVersion(height int64) ([]*types.KeyValue, error)
for i := maxVersion; i >= height; i-- { for i := maxVersion; i >= height; i-- {
hash, err := mvccs.mvcc.GetVersionHash(i) hash, err := mvccs.mvcc.GetVersionHash(i)
if err != nil { if err != nil {
kmlog.Debug("store kvmvcc checkVersion GetVersionHash failed", "height", i, "maxVersion", maxVersion) kmlog.Warn("store kvmvcc checkVersion GetVersionHash failed", "height", i, "maxVersion", maxVersion)
continue continue
} }
kvlist, err := mvccs.mvcc.DelMVCC(hash, i, false) kvlist, err := mvccs.mvcc.DelMVCC(hash, i, false)
if err != nil { if err != nil {
kmlog.Debug("store kvmvcc checkVersion DelMVCC failed", "height", i, "err", err) kmlog.Warn("store kvmvcc checkVersion DelMVCC failed", "height", i, "err", err)
continue continue
} }
kvset = append(kvset, kvlist...) kvset = append(kvset, kvlist...)
......
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