Commit 734f10f6 authored by Michael Widenius's avatar Michael Widenius Committed by Monty

Fix that spider test doesn't crash if my_gethwaddr() fails

This can happen if one doesn't have a working network connection when running
spider tests
parent cc4384ba
......@@ -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,
......
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