mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed issues in last push found by pushbuild
sql/sql_insert.cc: Removed DBUG_ASSERT() that is triggered by deadlock-innodb test storage/maria/ma_loghandler.c: Removed compiler warnings storage/maria/trnman_public.h: Fixed wrong code from last push
This commit is contained in:
@@ -3493,8 +3493,11 @@ static TABLE *create_table_from_items(THD *thd, HA_CREATE_INFO *create_info,
|
||||
MYSQL_LOCK_IGNORE_FLUSH, ¬_used)) ||
|
||||
hooks->postlock(&table, 1))
|
||||
{
|
||||
DBUG_ASSERT(0); // This should never happen
|
||||
/* purecov: begin tested */
|
||||
/*
|
||||
This can happen in innodb when you get a deadlock when using same table
|
||||
in insert and select
|
||||
*/
|
||||
my_error(ER_CANT_LOCK, MYF(0), my_errno);
|
||||
if (*lock)
|
||||
{
|
||||
|
@@ -8311,8 +8311,11 @@ void translog_set_file_size(uint32 size)
|
||||
Write debug information to log if we EXTRA_DEBUG is enabled
|
||||
*/
|
||||
|
||||
my_bool translog_log_debug_info(TRN *trn, enum translog_debug_info_type type,
|
||||
uchar *info, size_t length)
|
||||
my_bool translog_log_debug_info(TRN *trn __attribute__((unused)),
|
||||
enum translog_debug_info_type type
|
||||
__attribute__((unused)),
|
||||
uchar *info __attribute__((unused)),
|
||||
size_t length __attribute__((unused)))
|
||||
{
|
||||
#ifdef EXTRA_DEBUG
|
||||
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 2];
|
||||
|
@@ -75,7 +75,7 @@ uint16 trnman_get_state(TRN *);
|
||||
void trnman_set_state(TRN *, uint16 state_bit);
|
||||
#else
|
||||
#define trnman_get_state(A) 0
|
||||
uint16 trnman_set_state(A, B) do { } while (0)
|
||||
#define trnman_set_state(A, B) do { } while (0)
|
||||
#endif
|
||||
|
||||
/* Bits for 'state' */
|
||||
|
Reference in New Issue
Block a user