correct using of iterator raw func in bit api

This commit is contained in:
silentsai 2014-07-22 17:56:51 +08:00
parent dd1db989f4
commit 325f153885
1 changed files with 2 additions and 2 deletions

View File

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