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

PS-9581 fix: ALTER INSTANCE RELOAD TLS results in a very long execution (WIP) #5524

Draft
wants to merge 1 commit into
base: 8.0
Choose a base branch
from

Conversation

percona-ysorokin
Copy link
Collaborator

…on (WIP)

https://perconadev.atlassian.net/browse/PS-9581

Reworked 'Ssl_acceptor_context_container' / 'Lock_and_access_ssl_acceptor_context' -
we now use 'std::shared_ptr' to extend SSL context lifetime.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

if (!context.have_ssl()) return packet_error;
DBUG_PRINT("info", ("IO layer change in progress..."));
if (sslaccept(context.get_vio_ssl_fd(), protocol->get_vio(),
protocol->get_net()->read_timeout, &errptr)) {

Choose a reason for hiding this comment

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

⚠️ readability-implicit-bool-conversion ⚠️
implicit conversion int -> bool

Suggested change
protocol->get_net()->read_timeout, &errptr)) {
protocol->get_net()->read_timeout, &errptr) != 0) {

Lock_and_access_ssl_acceptor_context(Ssl_acceptor_context_container *context)
: read_lock_(context->lock_) {}
~Lock_and_access_ssl_acceptor_context() = default;
Lock_and_access_ssl_acceptor_context_data(

Choose a reason for hiding this comment

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

⚠️ google-explicit-constructor ⚠️
single-argument constructors must be marked explicit to avoid unintentional implicit conversions

Suggested change
Lock_and_access_ssl_acceptor_context_data(
explicit Lock_and_access_ssl_acceptor_context_data(

@@ -54,8 +54,8 @@ class Ssl_acceptor_context_iterator {
public:
using Ssl_acceptor_context_iterator_data_container =
std::vector<Ssl_acceptor_context_iterator_data>;
Ssl_acceptor_context_iterator(Ssl_acceptor_context_container *context_type) {
Lock_and_access_ssl_acceptor_context context(context_type);
Ssl_acceptor_context_iterator(const Ssl_acceptor_context_data_ptr &data) {

Choose a reason for hiding this comment

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

⚠️ google-explicit-constructor ⚠️
single-argument constructors must be marked explicit to avoid unintentional implicit conversions

Suggested change
Ssl_acceptor_context_iterator(const Ssl_acceptor_context_data_ptr &data) {
explicit Ssl_acceptor_context_iterator(const Ssl_acceptor_context_data_ptr &data) {

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

Successfully merging this pull request may close these issues.

1 participant