]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add more debug logs for sparse read 54571/head
authorXiubo Li <xiubli@redhat.com>
Mon, 20 Nov 2023 14:04:12 +0000 (22:04 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 20 Nov 2023 14:04:30 +0000 (22:04 +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>
src/osd/PrimaryLogPG.cc

index 1f493eee26cf6dde476b58d28a7a380da3f54dfe..5cf9bbba68d38adf59717f8c8b90a7405f0f5b18 100644 (file)
@@ -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);