]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add more debug logs for sparse read 54606/head
authorXiubo Li <xiubli@redhat.com>
Mon, 20 Nov 2023 14:04:12 +0000 (22:04 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 22 Nov 2023 01:05:16 +0000 (09:05 +0800)
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 <xiubli@redhat.com>
(cherry picked from commit 1cf5ecb93fb73a5ed4a82935f635f98efccf7de6)

src/osd/PrimaryLogPG.cc

index 243e127eb0a8d0a16b0d97d7c4487bab778956d2..075b2f3ef18d88270e51b431427d463dbdc3e2ad 100644 (file)
@@ -5953,8 +5953,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);