From: Willem Jan Withagen Date: Tue, 9 Apr 2019 09:39:07 +0000 (+0200) Subject: rgw: use the compatibilty function for pthread_setname X-Git-Tag: v15.1.0~2826^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d49ca12530097dd4b766aa3adb5d03ed042b603;p=ceph.git rgw: use the compatibilty function for pthread_setname Signed-off-by: Willem Jan Withagen --- diff --git a/src/rgw/rgw_amqp.cc b/src/rgw/rgw_amqp.cc index 4143eaae977f..158bbe301779 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 #include @@ -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); }