This commit is contained in:
Aliaksandr Valialkin 2024-05-16 00:21:01 +02:00
parent 17026756a5
commit 2368a3afce
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -82,9 +82,7 @@ func (br *blockResult) clone() *blockResult {
brNew := &blockResult{} brNew := &blockResult{}
brNew.bs = br.bs brNew.bs = br.bs
brNew.bm = br.bm
brNew.bm = getBitmap(br.bm.bitsLen)
brNew.bm.copyFrom(br.bm)
cs := br.getColumns() cs := br.getColumns()
@ -137,7 +135,6 @@ func (br *blockResult) addValue(v string) {
func (br *blockResult) sizeBytes() int { func (br *blockResult) sizeBytes() int {
n := int(unsafe.Sizeof(*br)) n := int(unsafe.Sizeof(*br))
n += br.bm.sizeBytes()
n += br.a.sizeBytes() n += br.a.sizeBytes()
n += cap(br.valuesBuf) * int(unsafe.Sizeof(br.valuesBuf[0])) n += cap(br.valuesBuf) * int(unsafe.Sizeof(br.valuesBuf[0]))
n += cap(br.timestamps) * int(unsafe.Sizeof(br.timestamps[0])) n += cap(br.timestamps) * int(unsafe.Sizeof(br.timestamps[0]))