mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
MDEV-17313 Data race in ib_counter_t
try fix OSX build
This commit is contained in:
parent
f7179c4432
commit
fee24b1281
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue