From e8726dd3ebc462aeaf9f5741bed277ade6dfa523 Mon Sep 17 00:00:00 2001 From: Geofrey Ernest Date: Mon, 21 Oct 2024 01:06:03 +0300 Subject: [PATCH] inline bitmap value_merger --- internal/util/data/value_merger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/util/data/value_merger.go b/internal/util/data/value_merger.go index 62c13ba3..2f1dfeaf 100644 --- a/internal/util/data/value_merger.go +++ b/internal/util/data/value_merger.go @@ -15,12 +15,12 @@ type ValueMerger struct { var _ pebble.ValueMerger = (*ValueMerger)(nil) func (va *ValueMerger) MergeNewer(value []byte) error { - va.ra = roaring.Or(va.ra, roaring.FromBuffer(value)) + va.ra.Or(roaring.FromBuffer(value)) return nil } func (va *ValueMerger) MergeOlder(value []byte) error { - va.ra = roaring.Or(va.ra, roaring.FromBuffer(value)) + va.ra.Or(roaring.FromBuffer(value)) return nil }