mirror of https://github.com/ledisdb/ledisdb.git
correct using of iterator raw func in bit api
This commit is contained in:
parent
dd1db989f4
commit
325f153885
|
@ -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++
|
||||
|
|
Loading…
Reference in New Issue