Skip to content

Commit

Permalink
Fix that spider test doesn't crash if my_gethwaddr() fails
Browse files Browse the repository at this point in the history
This can happen if one doesn't have a working network connection when running
spider tests
  • Loading branch information
montywi committed May 24, 2022
1 parent cc4384b commit 734f10f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/spider/spd_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7234,8 +7234,9 @@ int spider_db_init(

if (my_gethwaddr((uchar *) addr))
{
my_printf_error(ER_SPIDER_CANT_NUM, ER_SPIDER_CANT_STR1, MYF(0),
my_printf_error(ER_SPIDER_CANT_NUM, ER_SPIDER_CANT_STR1, MYF(ME_WARNING),
"get hardware address with error ", errno);
bzero(addr,6);
}
spider_unique_id.str = spider_unique_id_buf;
spider_unique_id.length = my_sprintf(spider_unique_id_buf,
Expand Down

0 comments on commit 734f10f

Please sign in to comment.