Commit 3d8ef8bf authored by Alexander Barkov's avatar Alexander Barkov

ftime does not exist on FreeBSD.

Hiding calls for ftime() as a temporary fix.

This code should be modified to use my_time_microseconds() instead.
parent d1011629
...@@ -2462,7 +2462,9 @@ int ha_connect::rnd_init(bool scan) ...@@ -2462,7 +2462,9 @@ int ha_connect::rnd_init(bool scan)
} // endif g } // endif g
xp->nrd= xp->fnd= xp->nfd= 0; xp->nrd= xp->fnd= xp->nfd= 0;
#ifndef __FreeBSD__
ftime(&xp->tb1); ftime(&xp->tb1);
#endif
DBUG_RETURN(0); DBUG_RETURN(0);
} // end of rnd_init } // end of rnd_init
...@@ -2543,7 +2545,9 @@ int ha_connect::rnd_next(uchar *buf) ...@@ -2543,7 +2545,9 @@ int ha_connect::rnd_next(uchar *buf)
#ifndef DBUG_OFF #ifndef DBUG_OFF
if (rc || !(xp->nrd++ % 16384)) { if (rc || !(xp->nrd++ % 16384)) {
#ifndef __FreeBSD__
ftime(&xp->tb2); ftime(&xp->tb2);
#endif
double elapsed= (double) (xp->tb2.time - xp->tb1.time) double elapsed= (double) (xp->tb2.time - xp->tb1.time)
+ ((double) (xp->tb2.millitm - xp->tb1.millitm) / 1000.0); + ((double) (xp->tb2.millitm - xp->tb1.millitm) / 1000.0);
DBUG_PRINT("rnd_next", ("rc=%d nrd=%u fnd=%u nfd=%u sec=%.3lf\n", DBUG_PRINT("rnd_next", ("rc=%d nrd=%u fnd=%u nfd=%u sec=%.3lf\n",
......
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