]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/dedup: Bug-Fix 64264/head
authorGabriel BenHanokh <gbenhano@redhat.com>
Wed, 4 Jun 2025 11:29:20 +0000 (11:29 +0000)
committerGabriel BenHanokh <gbenhano@redhat.com>
Tue, 1 Jul 2025 08:20:47 +0000 (08:20 +0000)
Move ceph_pthread_setname() call from main RGW code to the dedup
bg-thread

Signed-off-by: Gabriel BenHanokh <gbenhano@redhat.com>
(cherry picked from commit 7510a80d44a63d2c3ab08174af07880245940b43)

src/rgw/rgw_dedup.cc

index 7bb44ecb98968188adad34044914505e6fec3fe8..756d96af304512db34e2d75785fe0ac3e167ad8d 100644 (file)
@@ -2391,8 +2391,6 @@ namespace rgw::dedup {
       d_ctl.started = true;
     }
     d_runner = std::thread(&Background::run, this);
-    const auto rc = ceph_pthread_setname("dedup_bg");
-    ldpp_dout(dpp, 5) << "dedup_bg start() = " << rc << dendl;
   }
 
   //------------------------- --------------------------------------------------
@@ -2616,6 +2614,9 @@ namespace rgw::dedup {
   //---------------------------------------------------------------------------
   void Background::run()
   {
+    const auto rc = ceph_pthread_setname("dedup_bg");
+    ldpp_dout(dpp, 5) << __func__ << "ceph_pthread_setname() ret=" << rc << dendl;
+
     // 256x8KB=2MB
     const uint64_t PER_SHARD_BUFFER_SIZE = DISK_BLOCK_COUNT *sizeof(disk_block_t);
     ldpp_dout(dpp, 20) <<__func__ << "::dedup::main loop" << dendl;