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++