]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth LUA: reset thread name after async runs
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 10 Sep 2024 08:13:00 +0000 (10:13 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 25 Sep 2024 11:48:24 +0000 (13:48 +0200)
(cherry picked from commit 9f2121926497c89c9071fff372e2d0601f066928)

pdns/lua-record.cc

index 795973230c8902ae56c82ecbf5c554f7a2b16b73..d1215b2add88b0c4a48bef9d20bf85e17378c2ec 100644 (file)
@@ -204,6 +204,10 @@ private:
           statuses->erase(it);
         }
       }
+
+      // set thread name again, in case std::async surprised us by doing work in this thread
+      setThreadName("pdns/luaupcheck");
+
       std::this_thread::sleep_until(checkStart + std::chrono::seconds(g_luaHealthChecksInterval));
     }
   }