Skip to content

Commit b97e45f

Browse files
committed
Fixed main.null failure in embedded
It is not permitted to "delete thd" under LOCK_thread_count anymore.
1 parent 2552a95 commit b97e45f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmysqld/lib_sql.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ static void emb_free_embedded_thd(MYSQL *mysql)
428428
thread_count--;
429429
thd->store_globals();
430430
thd->unlink();
431-
delete thd;
432431
mysql_mutex_unlock(&LOCK_thread_count);
432+
delete thd;
433433
my_pthread_setspecific_ptr(THR_THD, 0);
434434
mysql->thd=0;
435435
}

0 commit comments

Comments
 (0)