mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 04:21:20 +00:00
e3: close files (#912)
This commit is contained in:
parent
18a0f2bafa
commit
5edc0612ce
@ -66,17 +66,16 @@ func NewLocalityIndex(
|
|||||||
return li, nil
|
return li, nil
|
||||||
}
|
}
|
||||||
func (li *LocalityIndex) closeWhatNotInList(fNames []string) {
|
func (li *LocalityIndex) closeWhatNotInList(fNames []string) {
|
||||||
if li == nil || li.file == nil || li.file.decompressor == nil {
|
if li == nil || li.bm == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, protectName := range fNames {
|
for _, protectName := range fNames {
|
||||||
if li.file.decompressor.FileName() == protectName {
|
if li.bm.FileName() == protectName {
|
||||||
continue
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
li.closeFiles()
|
li.closeFiles()
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (li *LocalityIndex) OpenList(fNames []string) error {
|
func (li *LocalityIndex) OpenList(fNames []string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user