MDEV-17313 Data race in ib_counter_t

try fix OSX build
This commit is contained in:
Eugene Kosov 2018-10-15 09:32:52 +03:00 committed by Sergey Vojtovich
parent f7179c4432
commit fee24b1281

View file

@ -58,7 +58,7 @@ get_rnd_value()
/* We may go here if my_timer_cycles() returns 0,
so we have to have the plan B for the counter. */
#if !defined(_WIN32)
return static_cast<size_t>(os_thread_get_curr_id());
return (size_t)os_thread_get_curr_id();
#else
LARGE_INTEGER cnt;
QueryPerformanceCounter(&cnt);