forked from mirror/ledisdb
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()
|
it.Close()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
segments[seq] = it.RawValue()
|
segments[seq] = it.Value()
|
||||||
}
|
}
|
||||||
it.Close()
|
it.Close()
|
||||||
srcIdx++
|
srcIdx++
|
||||||
|
@ -820,7 +820,7 @@ func (db *DB) BOperation(op uint8, dstkey []byte, srckeys ...[]byte) (blen int32
|
||||||
}
|
}
|
||||||
|
|
||||||
if !end {
|
if !end {
|
||||||
res = it.RawValue()
|
res = it.Value()
|
||||||
exeOp(segments[seq], res, &res)
|
exeOp(segments[seq], res, &res)
|
||||||
segments[seq] = res
|
segments[seq] = res
|
||||||
idx++
|
idx++
|
||||||
|
|
Loading…
Reference in New Issue