]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/lba_manager: improve add_pin debugging
authorSamuel Just <sjust@redhat.com>
Tue, 31 Aug 2021 04:14:07 +0000 (21:14 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 8 Sep 2021 00:04:32 +0000 (17:04 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/lba_manager/btree/btree_range_pin.cc

index 0168be0236aea875566e2d4d15595e1f9ef81603..549dabaae0dabeddd923490ceb41df1210285d97 100644 (file)
@@ -112,7 +112,13 @@ void btree_pin_set_t::add_pin(btree_range_pin_t &pin)
 
   auto [prev, inserted] = pins.insert(pin);
   if (!inserted) {
-    logger().error("{}: unable to add {}, found {}", __func__, pin, *prev);
+    logger().error(
+      "{}: unable to add {} ({}), found {} ({})",
+      __func__,
+      pin,
+      *(pin.extent),
+      *prev,
+      *(prev->extent));
     ceph_assert(0 == "impossible");
     return;
   }