Commit af80ac84 authored by liuyuhang's avatar liuyuhang

del kvmvcc roll back limit

parent 0df75337
...@@ -256,7 +256,6 @@ func (mvccs *KVMVCCStore) checkVersion(height int64) ([]*types.KeyValue, error) ...@@ -256,7 +256,6 @@ func (mvccs *KVMVCCStore) checkVersion(height int64) ([]*types.KeyValue, error)
} else if maxVersion == height-1 { } else if maxVersion == height-1 {
return nil, nil return nil, nil
} else { } else {
count := 1
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 {
......
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