]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:Fix rgw decompression log-print 30156/head
authorHan Fengzhe <hanfengzhe@hisilicon.com>
Tue, 13 Aug 2019 09:08:23 +0000 (17:08 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 4 Sep 2019 21:20:43 +0000 (23:20 +0200)
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)

src/rgw/rgw_compression.cc

index 3ed47492c9f6e0eb424646da567441f17bdcb90f..9c3da55434b8e5c8f4bc6c5adb8495676a8d3a66 100644 (file)
@@ -102,7 +102,7 @@ int RGWGetObj_Decompress::handle_data(bufferlist& bl, off_t bl_ofs, off_t bl_len
     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;