From 5769b44b6403d8b4f29ed6d6b28d3b06996b12e6 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 11 Nov 2016 09:57:47 -0500 Subject: [PATCH] rgw: log the compression attribute in PutObj Signed-off-by: Casey Bodley --- src/rgw/rgw_op.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index dca4ce775e7c..90421d02b59d 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -3086,6 +3086,10 @@ void RGWPutObj::execute() cs_info.blocks = move(compressor->get_compression_blocks()); ::encode(cs_info, tmp); attrs[RGW_ATTR_COMPRESSION] = tmp; + ldout(s->cct, 20) << "storing " << RGW_ATTR_COMPRESSION + << " with type=" << cs_info.compression_type + << ", orig_size=" << cs_info.orig_size + << ", blocks=" << cs_info.blocks.size() << dendl; } buf_to_hex(m, CEPH_CRYPTO_MD5_DIGESTSIZE, calc_md5); -- 2.47.3