-
Notifications
You must be signed in to change notification settings - Fork 481
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
base: 8.0
Are you sure you want to change the base?
PS-9581 fix: ALTER INSTANCE RELOAD TLS results in a very long execution (WIP) #5524
Conversation
…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.
There was a problem hiding this 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)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implicit conversion int
-> bool
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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single-argument constructors must be marked explicit to avoid unintentional implicit conversions
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single-argument constructors must be marked explicit to avoid unintentional implicit conversions
Ssl_acceptor_context_iterator(const Ssl_acceptor_context_data_ptr &data) { | |
explicit Ssl_acceptor_context_iterator(const Ssl_acceptor_context_data_ptr &data) { |
https://perconadev.atlassian.net/browse/PS-9581