Skip to content

Commit 4b1025b

Browse files
Sai Tharun Ambatitanydixi
Sai Tharun Ambati
authored andcommitted
Bug #34857411 : regression - slow connections/telnet block many other statements
for connect_timeout seconds, causing pileups [post-push-fix] Fixing the sporadically failing testcase on PB2 Approved by Harin Vadodaria <harin.vadodaria@oracle.com> over Slack.
1 parent 6f06e96 commit 4b1025b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sql/auth/sql_authentication.cc

+5
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,11 @@ acl_authenticate(THD *thd, enum_server_command command)
21962196
compile_time_assert(MYSQL_USERNAME_LENGTH == USERNAME_LENGTH);
21972197
assert(command == COM_CONNECT || command == COM_CHANGE_USER);
21982198

2199+
DBUG_EXECUTE_IF("acl_authenticate_begin", {
2200+
const char act[] = "now SIGNAL conn2_in_acl_auth WAIT_FOR conn1_reached_kill";
2201+
assert(!debug_sync_set_action(current_thd, STRING_WITH_LEN(act)));
2202+
});
2203+
21992204
server_mpvio_initialize(thd, &mpvio, &charset_adapter);
22002205
/*
22012206
Clear thd->db as it points to something, that will be freed when

0 commit comments

Comments
 (0)