Skip to content

Commit f091fb0

Browse files
TharunSaimsprajap
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 <[email protected]> over Slack. (cherry picked from commit 5bbbeeb95a0f17065a69a02984b1fc8c5d54f693)
1 parent 681dd0d commit f091fb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sql/auth/sql_authentication.cc

Lines changed: 5 additions & 0 deletions
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)