From: Xiubo Li Date: Mon, 20 Nov 2023 14:04:12 +0000 (+0800) Subject: osd: add more debug logs for sparse read X-Git-Tag: v19.0.0~65^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F54571%2Fhead;p=ceph.git osd: add more debug logs for sparse read This will be very important to get to know what exactly has happened when client get a very large number of extents. URL: https://tracker.ceph.com/issues/63586 Signed-off-by: Xiubo Li --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 1f493eee26cf..5cf9bbba68d3 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -5933,8 +5933,8 @@ int PrimaryLogPG::do_sparse_read(OpContext *ctx, OSDOp& osd_op) { encode(m, osd_op.outdata); // re-encode since it might be modified ::encode_destructively(data_bl, osd_op.outdata); - dout(10) << " sparse_read got " << r << " bytes from object " - << soid << dendl; + dout(10) << " sparse_read got " << m.size() << " extents and " << r + << " bytes from object " << soid << dendl; } ctx->delta_stats.num_rd_kb += shift_round_up(op.extent.length, 10);