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

RESOLV: supress deprecation warnings #7592

Closed
wants to merge 2 commits into from

Conversation

alexey-tikhonov
Copy link
Member

In theory new API might be somewhat better.

But:

  1. it's fairly new: ares_search_dnsrec() and ares_query_dnsrec()
    were introduced in c-ares-1.28 while even CentOS Stream 10 has
    c-ares-1.25, so SSSD would need to support (fallback) old API anyway.

  2. SSSD doesn't make heavy use of DNS, so potential performance
    improvements are really negligible.

On the other hand, old API/ABI will be available for a long time:
c-ares/c-ares#732 (comment)

For those reasons it's not worth the effort to port code to new API
right now.

`resolv_gethostbyname_dns_parse()` didn't use `status` and it was
always set to `ARES_SUCCESS` anyway.
In theory new API might be somewhat better.

But:

1) it's fairly new: `ares_search_dnsrec()` and `ares_query_dnsrec()`
were introduced in c-ares-1.28 while even CentOS Stream 10 has
c-ares-1.25, so SSSD would need to support (fallback) old API anyway.

2) SSSD doesn't make heavy use of DNS, so potential performance
improvements are really negligible.

On the other hand, old API/ABI will be available for a long time:
c-ares/c-ares#732 (comment)

For those reasons it's not worth the effort to port code to new API
right now.
@alexey-tikhonov alexey-tikhonov added the no-backport This should go to target branch only. label Sep 13, 2024
@alexey-tikhonov alexey-tikhonov marked this pull request as ready for review September 13, 2024 19:47
Copy link
Contributor

@thalman thalman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, thanks

Copy link
Contributor

@aplopez aplopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexey-tikhonov
Copy link
Member Author

Pushed PR: #7592

  • master
    • 8227599 - RESOLV: supress deprecation warnings
    • 41dfdcc - RESOLV: removed unused argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport This should go to target branch only. Pushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants