From af2719689dc3b14925b7c5989a3dc938d1f6680d Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 1 Dec 2020 18:44:02 +0300 Subject: [PATCH] [#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 --- pkg/local_object_storage/blobstor/put.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/blobstor/put.go b/pkg/local_object_storage/blobstor/put.go index e3f89daccf..7557a3d8fe 100644 --- a/pkg/local_object_storage/blobstor/put.go +++ b/pkg/local_object_storage/blobstor/put.go @@ -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 }