triedb/pathdb: update metadata

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2025-08-03 22:58:40 +08:00
parent 8315b60fd1
commit 7184b37b5b

View file

@ -507,6 +507,8 @@ func (i *indexIniter) index(done chan struct{}, interrupt *atomic.Int32, lastID
storeIndexMetadata(i.disk, 0)
log.Info("Initialized history indexing flag")
} else {
// Update the metadata to indicate that indexing is complete up to lastID
storeIndexMetadata(i.disk, lastID)
log.Debug("State history is fully indexed", "last", lastID)
}
return