Skip to content

Commit

Permalink
fix 0 databuf bug in DataPageV2
Browse files Browse the repository at this point in the history
  • Loading branch information
xitongsys authored and durango committed Apr 14, 2021
1 parent f76eafb commit 521bf34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions layout/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,10 @@ func ReadPage(thriftReader *thrift.TBufferedTransport, schemaHandler *schema.Sch
}

codec := colMetaData.GetCodec()
if dataBuf, err = compress.Uncompress(dataBuf, codec); err != nil {
return nil, 0, 0, err
if len(dataBuf) > 0 {
if dataBuf, err = compress.Uncompress(dataBuf, codec); err != nil {
return nil, 0, 0, err
}
}

tmpBuf := make([]byte, 0)
Expand Down

0 comments on commit 521bf34

Please # to comment.