fix previous sloppy fix which hadn't been adequately tested
This commit is contained in:
parent
201fb91171
commit
2768c2da3c
|
@ -529,8 +529,9 @@ func NewBackIndexRowKV(key, value []byte) (*BackIndexRow, error) {
|
|||
}
|
||||
if err != nil && err != io.EOF {
|
||||
return nil, err
|
||||
} else if err == nil {
|
||||
rv.doc = rv.doc[:len(rv.doc)-1] // trim off separator byte
|
||||
}
|
||||
rv.doc = rv.doc[:len(rv.doc)-1] // trim off separator byte
|
||||
|
||||
var birv BackIndexRowValue
|
||||
err = proto.Unmarshal(value, &birv)
|
||||
|
|
Loading…
Reference in New Issue