diff --git a/lib/redis/bitops/sparse_bitmap.rb b/lib/redis/bitops/sparse_bitmap.rb index f864bc5..5a849cd 100644 --- a/lib/redis/bitops/sparse_bitmap.rb +++ b/lib/redis/bitops/sparse_bitmap.rb @@ -40,8 +40,8 @@ def bitop(op, *operands, result) all_keys = self.chunk_keys + (operands.map(&:chunk_keys).flatten! || []) unique_chunk_numbers = Set.new(chunk_numbers(all_keys)) - - maybe_multi(level: :bitmap, watch: all_keys) do + + @redis.pipelined do unique_chunk_numbers.each do |i| @redis.bitop(op, result.chunk_key(i), self.chunk_key(i), *operands.map { |o| o.chunk_key(i) }) end @@ -122,4 +122,4 @@ def maybe_multi(options = {}, &block) end end -end \ No newline at end of file +end