ldout(cct,10) << "worker start" << dendl;
std::stringstream ss;
- char name[16] = {0};
- ceph_pthread_getname(pthread_self(), name, sizeof(name));
- ss << name << " thread " << name;
+ ss << name << " thread " << (void *)pthread_self();
heartbeat_handle_d *hb = cct->get_heartbeat_map()->add_worker(ss.str(), pthread_self());
while (!_stop) {
ldout(cct,10) << "worker start" << dendl;
std::stringstream ss;
- char name[16] = {0};
- ceph_pthread_getname(pthread_self(), name, sizeof(name));
- ss << name << " thread " << name;
+ ss << name << " thread " << (void *)pthread_self();
heartbeat_handle_d *hb = cct->get_heartbeat_map()->add_worker(ss.str(), pthread_self());
while (!stop_threads) {