Skip to content

Commit 8d0f1fc

Browse files
Merge branch 'mysql-5.5' into mysql-5.6
2 parents d0d7fbd + 35809da commit 8d0f1fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sql/sql_class.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -374,15 +374,13 @@ void thd_binlog_pos(const THD *thd,
374374
375375
thd_new_connection_setup
376376
377-
@note Must be called with LOCK_thread_count locked.
378-
379377
@param thd THD object
380378
@param stack_start Start of stack for connection
381379
*/
382380
void thd_new_connection_setup(THD *thd, char *stack_start)
383381
{
384382
DBUG_ENTER("thd_new_connection_setup");
385-
mysql_mutex_assert_owner(&LOCK_thread_count);
383+
mysql_mutex_lock(&LOCK_thread_count);
386384
#ifdef HAVE_PSI_INTERFACE
387385
thd_set_psi(thd,
388386
PSI_THREAD_CALL(new_thread)

0 commit comments

Comments
 (0)