0
0
Fork 0

Merge pull request #806 from abhinavdangeti/master

Fixing the scorch search request memory estimate
This commit is contained in:
Abhinav Dangeti 2018-03-07 10:11:24 -08:00 committed by GitHub
commit 06be1ad72e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

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