]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: shorten name of RGWAsyncRadosProcessor thread pool
authorCasey Bodley <cbodley@redhat.com>
Tue, 12 Jan 2016 20:26:20 +0000 (15:26 -0500)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:54 +0000 (16:13 -0800)
threads now call pthread_setname_np(), and have to enforce a
16-character limit on the names. this fixes the assertion:

ceph/src/common/Thread.cc: 156: FAILED assert(strlen(name) < 16)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_cr_rados.cc

index 83b9808be0b5966d6525c1a31467df967bd861eb..90a168a22f77435630919fd7971f2d44ae870794 100644 (file)
@@ -50,9 +50,9 @@ void RGWAsyncRadosProcessor::RGWWQ::_dump_queue() {
 
 RGWAsyncRadosProcessor::RGWAsyncRadosProcessor(RGWRados *_store, int num_threads)
   : store(_store), m_tp(store->ctx(), "RGWAsyncRadosProcessor::m_tp", "rados_async", num_threads),
-  req_throttle(store->ctx(), "rgw_async_rados_ops", num_threads * 2),
-  req_wq(this, g_conf->rgw_op_thread_timeout,
-         g_conf->rgw_op_thread_suicide_timeout, &m_tp) {
+    req_throttle(store->ctx(), "rgw_async_rados_ops", num_threads * 2),
+    req_wq(this, g_conf->rgw_op_thread_timeout,
+    g_conf->rgw_op_thread_suicide_timeout, &m_tp) {
 }
 
 void RGWAsyncRadosProcessor::start() {