From 325f1538858285cb5c4837340418c58acfab8993 Mon Sep 17 00:00:00 2001 From: silentsai Date: Tue, 22 Jul 2014 17:56:51 +0800 Subject: [PATCH] correct using of iterator raw func in bit api --- ledis/t_bit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledis/t_bit.go b/ledis/t_bit.go index fa9c6a8..b93355d 100644 --- a/ledis/t_bit.go +++ b/ledis/t_bit.go @@ -782,7 +782,7 @@ func (db *DB) BOperation(op uint8, dstkey []byte, srckeys ...[]byte) (blen int32 it.Close() return } - segments[seq] = it.RawValue() + segments[seq] = it.Value() } it.Close() srcIdx++ @@ -820,7 +820,7 @@ func (db *DB) BOperation(op uint8, dstkey []byte, srckeys ...[]byte) (blen int32 } if !end { - res = it.RawValue() + res = it.Value() exeOp(segments[seq], res, &res) segments[seq] = res idx++