mirror of
https://github.com/ceph/ceph
synced 2025-01-25 12:34:46 +00:00
Merge pull request #27456 from wjwithagen/wjw-fix-rgw_amqp.cc
rgw: use the compatibilty function for pthread_setname Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
1b33207372
@ -1,6 +1,7 @@
|
|||||||
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
|
||||||
// vim: ts=8 sw=2 smarttab
|
// vim: ts=8 sw=2 smarttab
|
||||||
|
|
||||||
|
#include "include/compat.h"
|
||||||
#include "rgw_amqp.h"
|
#include "rgw_amqp.h"
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <amqp.h>
|
#include <amqp.h>
|
||||||
@ -797,7 +798,7 @@ public:
|
|||||||
// when a new connection is added.
|
// when a new connection is added.
|
||||||
connections.max_load_factor(10.0);
|
connections.max_load_factor(10.0);
|
||||||
// give the runner thread a name for easier debugging
|
// give the runner thread a name for easier debugging
|
||||||
const auto rc = pthread_setname_np(runner.native_handle(), "amqp_manager");
|
const auto rc = ceph_pthread_setname(runner.native_handle(), "amqp_manager");
|
||||||
ceph_assert(rc==0);
|
ceph_assert(rc==0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user