mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
Fixed mutex problem in TRUNCATE TABLE
Docs/manual.texi: Changelog sql/mysqld.cc: Portability fix
This commit is contained in:
parent
ad4e686555
commit
532c5a78fb
4 changed files with 137 additions and 3 deletions
|
|
@ -573,9 +573,15 @@ end:
|
|||
}
|
||||
send_ok(&thd->net); // This should return record count
|
||||
}
|
||||
VOID(pthread_mutex_lock(&LOCK_open));
|
||||
unlock_table_name(thd, table_list);
|
||||
VOID(pthread_mutex_unlock(&LOCK_open));
|
||||
}
|
||||
else if (error)
|
||||
{
|
||||
VOID(pthread_mutex_lock(&LOCK_open));
|
||||
unlock_table_name(thd, table_list);
|
||||
VOID(pthread_mutex_unlock(&LOCK_open));
|
||||
}
|
||||
DBUG_RETURN(error ? -1 : 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue