diff --git a/index/scorch/segment/zap/posting.go b/index/scorch/segment/zap/posting.go index e9c68cba..ef21df8d 100644 --- a/index/scorch/segment/zap/posting.go +++ b/index/scorch/segment/zap/posting.go @@ -506,10 +506,6 @@ type Posting struct { func (p *Posting) Size() int { sizeInBytes := reflectStaticSizePosting - if p.iterator != nil { - sizeInBytes += p.iterator.Size() - } - for _, entry := range p.locs { sizeInBytes += entry.Size() }