Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rec: store thread id in info object, makes a few methods less error prone #15216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

omoerbeek
Copy link
Member

Short description

Main change in RecThreadInfo, rest is consequential.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@omoerbeek omoerbeek added the rec label Feb 24, 2025
@omoerbeek omoerbeek added this to the rec-5.3.0 milestone Feb 24, 2025
@omoerbeek omoerbeek changed the title rec: store id in info object, makes a few methods less error prone rec: store thread id in info object, makes a few methods less error prone Feb 24, 2025
@@ -569,6 +588,7 @@
std::string name;
std::thread thread;
int exitCode{0};
unsigned int d_myid{TID_NOT_INITED}; // should always equal to the thread_local tid;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 13500483107

Details

  • 26 of 39 (66.67%) changed or added relevant lines in 4 files are covered.
  • 101 unchanged lines in 22 files lost coverage.
  • Overall coverage decreased (-0.02%) to 64.511%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pdns/recursordist/lua-recursor4.cc 0 1 0.0%
pdns/recursordist/pdns_recursor.cc 1 3 33.33%
pdns/recursordist/rec-main.cc 9 14 64.29%
pdns/recursordist/rec-main.hh 16 21 76.19%
Files with Coverage Reduction New Missed Lines %
pdns/recursordist/syncres.cc 1 80.22%
pdns/validate.cc 1 68.19%
ext/json11/json11.cpp 2 62.72%
pdns/backends/gsql/gsqlbackend.hh 2 97.71%
pdns/dnsdistdist/dnsdist-crypto.cc 2 75.72%
pdns/recursordist/sortlist.cc 2 72.94%
modules/gpgsqlbackend/spgsql.cc 3 67.7%
pdns/fstrm_logger.cc 3 58.37%
pdns/misc.cc 3 62.57%
pdns/misc.hh 3 83.81%
Totals Coverage Status
Change from base Build 13495935494: -0.02%
Covered Lines: 127669
Relevant Lines: 166899

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants