0
0
Fork 0

fix previous sloppy fix which hadn't been adequately tested

This commit is contained in:
Marty Schoch 2015-05-27 19:15:55 -07:00
parent 201fb91171
commit 2768c2da3c
1 changed files with 2 additions and 1 deletions

View File

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