Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2025-08-05 17:43:14 +08:00
parent d5585fe579
commit d5d7d36e00

View file

@ -339,7 +339,7 @@ func (db *Database) repairHistory() error {
log.Warn("Truncated extra state histories", "number", pruned)
if meta := loadIndexMetadata(db.diskdb); meta != nil {
// Reset the state history index metadata to current state id
// if it's out of boundry.
// if it's out of boundary.
if old := meta.Last; old > id {
log.Warn("Reset state history index metadata after truncation", "oldID", old, "newID", id)
storeIndexMetadata(db.diskdb, id)