Commit c801936e authored by Max Kellermann's avatar Max Kellermann

db/update/Service: set the update thread name

parent 81765650
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "Idle.hxx" #include "Idle.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "thread/Thread.hxx" #include "thread/Thread.hxx"
#include "thread/Name.hxx"
#include "thread/Util.hxx" #include "thread/Util.hxx"
#ifndef NDEBUG #ifndef NDEBUG
...@@ -113,6 +114,8 @@ UpdateService::Task() ...@@ -113,6 +114,8 @@ UpdateService::Task()
{ {
assert(walk != nullptr); assert(walk != nullptr);
SetThreadName("update");
if (!next.path_utf8.empty()) if (!next.path_utf8.empty())
FormatDebug(update_domain, "starting: %s", FormatDebug(update_domain, "starting: %s",
next.path_utf8.c_str()); next.path_utf8.c_str());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment