This commit is contained in:
alex.sharov 2023-04-21 10:49:30 +07:00
parent 9cdea8f079
commit d2c9459ef6

View File

@ -130,9 +130,6 @@ func (ii *InvertedIndex) OpenList(fNames []string) error {
} }
ii.closeWhatNotInList(fNames) ii.closeWhatNotInList(fNames)
ii.garbageFiles = ii.scanStateFiles(fNames) ii.garbageFiles = ii.scanStateFiles(fNames)
for _, f := range ii.garbageFiles {
log.Warn("Garbage file", "f", fmt.Sprintf("%s.%d-%d.ef", ii.filenameBase, f.startTxNum/ii.aggregationStep, f.endTxNum/ii.aggregationStep))
}
if err := ii.openFiles(); err != nil { if err := ii.openFiles(); err != nil {
return fmt.Errorf("NewHistory.openFiles: %s, %w", ii.filenameBase, err) return fmt.Errorf("NewHistory.openFiles: %s, %w", ii.filenameBase, err)
} }