Skip to content

Commit

Permalink
auth LUA: reset thread name after async runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Sep 10, 2024
1 parent 9efb060 commit 9f21219
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pdns/lua-record.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ class IsUpOracle
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));
}
}
Expand Down

0 comments on commit 9f21219

Please sign in to comment.