Commit c74469de authored by liuyuhang's avatar liuyuhang

mod linter

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