]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: use the compatibilty function for pthread_setname 27456/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 9 Apr 2019 09:39:07 +0000 (11:39 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 9 Apr 2019 10:01:28 +0000 (12:01 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/rgw/rgw_amqp.cc

index 4143eaae977fcd4245e18eae2f7b587cb067101b..158bbe3017793339776aab10ff0f75f0dc30fd5a 100644 (file)
@@ -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);
   }