From: Gabriel BenHanokh Date: Wed, 4 Jun 2025 11:29:20 +0000 (+0000) Subject: rgw/dedup: Bug-Fix X-Git-Tag: testing/wip-vshankar-testing-20250610.034655-debug~6^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7510a80d44a63d2c3ab08174af07880245940b43;p=ceph-ci.git rgw/dedup: Bug-Fix Move ceph_pthread_setname() call from main RGW code to the dedup bg-thread Signed-off-by: Gabriel BenHanokh --- diff --git a/src/rgw/rgw_dedup.cc b/src/rgw/rgw_dedup.cc index 0db80229ff1..500883ee3d9 100644 --- a/src/rgw/rgw_dedup.cc +++ b/src/rgw/rgw_dedup.cc @@ -2284,8 +2284,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; } //------------------------- -------------------------------------------------- @@ -2467,6 +2465,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;