unpack_row+binlog_cache_data: fix unused variable

This commit is contained in:
Nikita Malyavin 2024-01-17 21:26:52 +01:00
parent 9599cbc28d
commit dccce98388
2 changed files with 4 additions and 2 deletions

View file

@ -237,7 +237,8 @@ private:
delete pending();
set_pending(0);
}
my_bool res= reinit_io_cache(&cache_log, WRITE_CACHE, pos, 0, reset_cache);
IF_DBUG(my_bool res=,)
reinit_io_cache(&cache_log, WRITE_CACHE, pos, 0, reset_cache);
DBUG_ASSERT(res == 0);
cache_log.end_of_file= saved_max_binlog_cache_size;
}

View file

@ -439,7 +439,8 @@ int unpack_row(const rpl_group_info *rgi, TABLE *table, uint const colcnt,
{
DBUG_ASSERT(bitmap_is_set(cols, i));
Field *f= conv_table->field[i];
bool result= unpack_field(tabledef, f, &st, i);
IF_DBUG(bool result=,)
unpack_field(tabledef, f, &st, i);
DBUG_ASSERT(result);
}