Skip to content

Commit

Permalink
Merge pull request ceph#27456 from wjwithagen/wjw-fix-rgw_amqp.cc
Browse files Browse the repository at this point in the history
rgw: use the compatibilty function for pthread_setname

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
ivancich authored Apr 25, 2019
2 parents a553edb + 3d49ca1 commit 1b33207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rgw/rgw_amqp.cc
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -797,7 +798,7 @@ class Manager {
// 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);
}

Expand Down

0 comments on commit 1b33207

Please sign in to comment.