Skip to content

Commit 602c42a

Browse files
authored
fix: fix unneeded conversion when reading block_info on loading fraction (#296)
1 parent 4b5951b commit 602c42a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

frac/sealed/block_info.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ import (
66

77
"go.uber.org/zap"
88

9-
"github.com/ozontech/seq-db/config"
109
"github.com/ozontech/seq-db/frac/common"
1110
"github.com/ozontech/seq-db/logger"
12-
"github.com/ozontech/seq-db/seq"
1311
)
1412

1513
const seqDBMagic = "SEQM"
@@ -40,11 +38,5 @@ func (b *BlockInfo) Unpack(data []byte) error {
4038
return errors.New("stats unmarshaling error")
4139
}
4240
b.Info.MetaOnDisk = 0 // todo: make this correction on sealing and remove this next time
43-
44-
if b.Info.BinaryDataVer >= config.BinaryDataV2 {
45-
b.Info.From = seq.NanosToMID(uint64(b.Info.From))
46-
b.Info.To = seq.NanosToMID(uint64(b.Info.To))
47-
}
48-
4941
return nil
5042
}

0 commit comments

Comments
 (0)