Merge pull request #806 from abhinavdangeti/master
Fixing the scorch search request memory estimate
This commit is contained in:
commit
06be1ad72e
|
@ -57,18 +57,6 @@ type PostingsList struct {
|
|||
func (p *PostingsList) Size() int {
|
||||
sizeInBytes := reflectStaticSizePostingsList + size.SizeOfPtr
|
||||
|
||||
if p.sb != nil {
|
||||
sizeInBytes += (p.sb.Size() - len(p.sb.mem)) // do not include the mmap'ed part
|
||||
}
|
||||
|
||||
if p.locBitmap != nil {
|
||||
sizeInBytes += int(p.locBitmap.GetSizeInBytes())
|
||||
}
|
||||
|
||||
if p.postings != nil {
|
||||
sizeInBytes += int(p.postings.GetSizeInBytes())
|
||||
}
|
||||
|
||||
if p.except != nil {
|
||||
sizeInBytes += int(p.except.GetSizeInBytes())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue