Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Oct 18, 2024
1 parent fe8b74e commit f079aa1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions turbo/snapshotsync/freezeblocks/block_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,6 @@ func (s *DirtySegment) reopenIdx(dir string) (err error) {
for len(s.indexes) < len(s.Type().Indexes()) {
s.indexes = append(s.indexes, nil)
}
//for i, index := range s.Type().Indexes() {
//
// fileName := s.Type().IdxFileName(s.version, s.from, s.to, index)
// index, err := recsplit.OpenIndex(filepath.Join(dir, fileName))
// if err != nil {
// return fmt.Errorf("%w, fileName: %s", err, fileName)
// }
//
// s.indexes[i] = index
//}

for i, fileName := range s.Type().IdxFileNames(s.version, s.from, s.to) {
if s.indexes[i] != nil {
Expand Down

0 comments on commit f079aa1

Please sign in to comment.