diff options
author | Willem Jan Withagen <wjw@digiware.nl> | 2019-04-09 11:39:07 +0200 |
---|---|---|
committer | Willem Jan Withagen <wjw@digiware.nl> | 2019-04-09 12:01:28 +0200 |
commit | 3d49ca12530097dd4b766aa3adb5d03ed042b603 (patch) | |
tree | daec1fc4801141c15df446b1c8999899a1050a3d /src/rgw/rgw_amqp.cc | |
parent | Merge pull request #27416 from tchaikov/wip-crimson-auth (diff) | |
download | ceph-3d49ca12530097dd4b766aa3adb5d03ed042b603.tar.xz ceph-3d49ca12530097dd4b766aa3adb5d03ed042b603.zip |
rgw: use the compatibilty function for pthread_setname
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Diffstat (limited to 'src/rgw/rgw_amqp.cc')
-rw-r--r-- | src/rgw/rgw_amqp.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rgw/rgw_amqp.cc b/src/rgw/rgw_amqp.cc index 4143eaae977..158bbe30177 100644 --- a/src/rgw/rgw_amqp.cc +++ b/src/rgw/rgw_amqp.cc @@ -1,6 +1,7 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab +#include "include/compat.h" #include "rgw_amqp.h" #include <atomic> #include <amqp.h> @@ -797,7 +798,7 @@ public: // when a new connection is added. connections.max_load_factor(10.0); // 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); } |