]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: adding missing data to register_and_wake_split_child() logs 42965/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 30 Aug 2021 08:04:23 +0000 (08:04 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 30 Aug 2021 08:04:23 +0000 (08:04 +0000)
Fixing missing __func__, and adding a log before starting
to wait for the lock.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/OSD.cc

index b0518b6b9130ba09f94d5b6adc6d9647b70a3bd3..b6b56abeb463ab40d1f6c9ecee143d31e2a271a8 100644 (file)
@@ -10804,15 +10804,16 @@ void OSDShard::prime_merges(const OSDMapRef& as_of_osdmap,
 
 void OSDShard::register_and_wake_split_child(PG *pg)
 {
+  dout(15) <<  __func__ << ": " << pg << " #:" << pg_slots.size() << dendl;
   epoch_t epoch;
   {
     std::lock_guard l(shard_lock);
-    dout(10) << pg->pg_id << " " << pg << dendl;
+    dout(10) << __func__ << ": " << pg->pg_id << " " << pg << dendl;
     auto p = pg_slots.find(pg->pg_id);
     ceph_assert(p != pg_slots.end());
     auto *slot = p->second.get();
-    dout(20) << pg->pg_id << " waiting_for_split " << slot->waiting_for_split
-            << dendl;
+    dout(20) << __func__ << ": " << pg->pg_id << " waiting_for_split "
+            << slot->waiting_for_split << dendl;
     ceph_assert(!slot->pg);
     ceph_assert(!slot->waiting_for_split.empty());
     _attach_pg(slot, pg);