BugFix part_header.go (#2763)

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2757

Co-authored-by: haotingyi <haotingyi@corp.netease.com>
This commit is contained in:
Loki's Wager 2022-06-21 20:56:41 +08:00 committed by Aliaksandr Valialkin
parent 9362da2e7f
commit ca4730c00f
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -136,7 +136,6 @@ func (ph *partHeader) ParseFromPath(partPath string) error {
if ph.itemsCount != phj.ItemsCount {
return fmt.Errorf("invalid ItemsCount in %q; got %d; want %d", metadataPath, phj.ItemsCount, ph.itemsCount)
}
ph.blocksCount = phj.BlocksCount
if ph.blocksCount != phj.BlocksCount {
return fmt.Errorf("invalid BlocksCount in %q; got %d; want %d", metadataPath, phj.BlocksCount, ph.blocksCount)
}