From: Roi Dayan Date: Thu, 4 Feb 2016 14:10:40 +0000 (+0200) Subject: xio: thread name must be less than 16 chars X-Git-Tag: v10.1.0~370^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b448f3c060c95520463262d0d1b400769a43a85c;p=ceph.git xio: thread name must be less than 16 chars portal_id string can pass the 16 chars thread name limit so we can't use it. Signed-off-by: Roi Dayan --- diff --git a/src/msg/xio/XioPortal.h b/src/msg/xio/XioPortal.h index 3bbc31bddad..04e16d22a7e 100644 --- a/src/msg/xio/XioPortal.h +++ b/src/msg/xio/XioPortal.h @@ -16,6 +16,8 @@ #ifndef XIO_PORTAL_H #define XIO_PORTAL_H +#include + extern "C" { #include "libxio.h" } @@ -427,8 +429,10 @@ public: } for (p_ix = 0; p_ix < nportals; ++p_ix) { + string thread_name = "ms_xio_"; + thread_name.append(std::to_string(p_ix)); portal = portals[p_ix]; - portal->create(portal->portal_id); + portal->create(thread_name.c_str()); } }