Skip to content

Commit ed99046

Browse files
committed
Fixed change_user and func_misc in embedded
First thread was getting id 0, while it is intended to get id 1.
1 parent 804fb40 commit ed99046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/mysqld.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ ulong max_prepared_stmt_count;
555555
statements.
556556
*/
557557
ulong prepared_stmt_count=0;
558-
my_thread_id global_thread_id= 0;
558+
my_thread_id global_thread_id= 1;
559559
ulong current_pid;
560560
ulong slow_launch_threads = 0;
561561
uint sync_binlog_period= 0, sync_relaylog_period= 0,
@@ -8744,7 +8744,7 @@ static int mysql_init_variables(void)
87448744
denied_connections= 0;
87458745
executed_events= 0;
87468746
global_query_id= 1;
8747-
global_thread_id= 0;
8747+
global_thread_id= 1;
87488748
strnmov(server_version, MYSQL_SERVER_VERSION, sizeof(server_version)-1);
87498749
threads.empty();
87508750
thread_cache.empty();

0 commit comments

Comments
 (0)