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 GitHub
parent f88c642464
commit ac411be904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)
}