]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/ActivePyModule: build thread name with fmt
authorMax Kellermann <max.kellermann@ionos.com>
Thu, 10 Oct 2024 06:36:37 +0000 (08:36 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Thu, 10 Oct 2024 06:55:31 +0000 (08:55 +0200)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/mgr/ActivePyModule.h

index fb4a43e2de7c479537b4933a243066d004526e49..225a8edb4fcaca76bac515dc7289e4397168cf90 100644 (file)
@@ -27,6 +27,8 @@
 #include "PyModuleRunner.h"
 #include "PyModule.h"
 
+#include <fmt/core.h>
+
 #include <vector>
 #include <string>
 
@@ -54,7 +56,7 @@ public:
   ActivePyModule(const PyModuleRef &py_module_,
       LogChannelRef clog_)
     : PyModuleRunner(py_module_, clog_),
-      fin_thread_name(std::string("m-fin-" + py_module->get_name()).substr(0,15)),
+      fin_thread_name(fmt::format("m-fin-{}", py_module->get_name()).substr(0,15)),
       finisher(g_ceph_context, thread_name, fin_thread_name)
 
   {