Commit 61e2f43e authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Remove ut_win_init_time from innodb

The patch was brought in from 5.6.39 merge and we don't need it in
MariaDB
parent a0702dbc
......@@ -3643,12 +3643,6 @@ innobase_init(
/* Turn on monitor counters that are default on */
srv_mon_default_on();
#ifndef UNIV_HOTBACKUP
#ifdef _WIN32
ut_win_init_time();
#endif /* _WIN32 */
#endif /* !UNIV_HOTBACKUP */
DBUG_RETURN(FALSE);
error:
DBUG_RETURN(TRUE);
......
......@@ -273,15 +273,6 @@ UNIV_INTERN
ulint
ut_time_ms(void);
/*============*/
#ifdef _WIN32
/**********************************************************//**
Initialise highest available time resolution API on Windows.
Crashes if there's an error loading kernel32.dll.
*/
void
ut_win_init_time();
#endif /* _WIN32 */
#endif /* !UNIV_HOTBACKUP */
......
......@@ -59,23 +59,6 @@ epoch starts from 1970/1/1. For selection of constant see:
#define WIN_TO_UNIX_DELTA_USEC ((ib_int64_t) 11644473600000000ULL)
/**
Initialise highest available time resolution API on Windows.
Crashes if there's an error loading kernel32.dll.
*/
void
ut_win_init_time()
{
HMODULE h = LoadLibrary("kernel32.dll");
ut_a(h);
time_fn pfn = (time_fn)GetProcAddress(h, "GetSystemTimePreciseAsFileTime");
if (pfn != NULL)
{
ut_get_system_time_as_file_time = pfn;
}
return;
}
/*****************************************************************//**
This is the Windows version of gettimeofday(2).
@return 0 if all OK else -1 */
......
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