The zlib compression takes effect in RGW。
When getting objects failed because of decompress-failed。“ceph-client.rgw” log printed “Compression failed with exit code......”,it should be “deCompression failed with exit code......”。
Signed-off-by: Han Fengzhe <hanfengzhe@hisilicon.com>
(cherry picked from commit
9d22ccc0c6c41622975562f2806c32db2ec217a3)
in_bl.copy(ofs_in_bl, first_block->len, tmp);
int cr = compressor->decompress(tmp, out_bl);
if (cr < 0) {
- lderr(cct) << "Compression failed with exit code " << cr << dendl;
+ lderr(cct) << "Decompression failed with exit code " << cr << dendl;
return cr;
}
++first_block;