Commit c74469de authored by liuyuhang's avatar liuyuhang

mod linter

parent 5e081da4
...@@ -287,7 +287,7 @@ func delMavlData(db dbm.DB) bool { ...@@ -287,7 +287,7 @@ func delMavlData(db dbm.DB) bool {
if quit { if quit {
return false return false
} }
if !bytes.HasPrefix(it.Key(), []byte(mvccPrefix)) { // 将非mvcc的mavl数据全部删除 if !bytes.HasPrefix(it.Key(), mvccPrefix) { // 将非mvcc的mavl数据全部删除
batch.Delete(it.Key()) batch.Delete(it.Key())
if batch.ValueSize() > batchDataSize { if batch.ValueSize() > batchDataSize {
batch.Write() batch.Write()
......
...@@ -325,8 +325,8 @@ func pruningFirst(db dbm.DB, curHeight int64) { ...@@ -325,8 +325,8 @@ func pruningFirst(db dbm.DB, curHeight int64) {
continue continue
} }
if curHeight < int64(height)+levelPruningHeight && if curHeight < height+levelPruningHeight &&
curHeight >= int64(height)+int64(pruneHeight) { curHeight >= height+int64(pruneHeight) {
mp[string(key)] = append(mp[string(key)], height) mp[string(key)] = append(mp[string(key)], height)
count++ count++
} }
......
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