Skip to content

Commit 7510a80

Browse files
committed
rgw/dedup: Bug-Fix
Move ceph_pthread_setname() call from main RGW code to the dedup bg-thread Signed-off-by: Gabriel BenHanokh <[email protected]>
1 parent f8edbcc commit 7510a80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rgw/rgw_dedup.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,8 +2284,6 @@ namespace rgw::dedup {
22842284
d_ctl.started = true;
22852285
}
22862286
d_runner = std::thread(&Background::run, this);
2287-
const auto rc = ceph_pthread_setname("dedup_bg");
2288-
ldpp_dout(dpp, 5) << "dedup_bg start() = " << rc << dendl;
22892287
}
22902288

22912289
//------------------------- --------------------------------------------------
@@ -2467,6 +2465,9 @@ namespace rgw::dedup {
24672465
//---------------------------------------------------------------------------
24682466
void Background::run()
24692467
{
2468+
const auto rc = ceph_pthread_setname("dedup_bg");
2469+
ldpp_dout(dpp, 5) << __func__ << "ceph_pthread_setname() ret=" << rc << dendl;
2470+
24702471
// 256x8KB=2MB
24712472
const uint64_t PER_SHARD_BUFFER_SIZE = DISK_BLOCK_COUNT *sizeof(disk_block_t);
24722473
ldpp_dout(dpp, 20) <<__func__ << "::dedup::main loop" << dendl;

0 commit comments

Comments
 (0)