]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add more debug logs for sparse read 54604/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 00:56:13 +0000 (08:56 +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 bc5b6186538b1f7d0998f7f767ec2a21c4d5a427..5af74e35695b737f5d3fc485679cade4055eb3be 100644 (file)
@@ -5801,8 +5801,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);