[#222] Do not compress data in blobovniczas

Blobovnicza returns object, so we can't put compressed
data there. Compressed data won't be deserialized correctly.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-01 18:44:02 +03:00
parent 4114028a63
commit af2719689d

View file

@ -42,7 +42,7 @@ func (b *BlobStor) Put(prm *PutPrm) (*PutRes, error) {
return new(PutRes), b.fsTree.put(prm.obj.Address(), data)
} else {
// save object in blobovnicza
res, err := b.blobovniczas.put(prm.obj.Address(), b.compressor(data))
res, err := b.blobovniczas.put(prm.obj.Address(), data)
if err != nil {
return nil, err
}