Commit 05169a28 authored by Michael Widenius's avatar Michael Widenius

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
parent 34afcc03
......@@ -3493,8 +3493,11 @@ static TABLE *create_table_from_items(THD *thd, HA_CREATE_INFO *create_info,
MYSQL_LOCK_IGNORE_FLUSH, &not_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' */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment