Commit a58aa393 authored by unknown's avatar unknown

Portability fix

parent ba46d17f
...@@ -4648,11 +4648,7 @@ innodb_show_status( ...@@ -4648,11 +4648,7 @@ innodb_show_status(
rewind(srv_monitor_file); rewind(srv_monitor_file);
srv_printf_innodb_monitor(srv_monitor_file); srv_printf_innodb_monitor(srv_monitor_file);
flen = ftell(srv_monitor_file); flen = ftell(srv_monitor_file);
#ifdef __WIN__ my_chsize(fileno(srv_monitor_file), flen, 0, MYF(0));
chsize(fileno(srv_monitor_file), flen);
#else /* __WIN__ */
ftruncate(fileno(srv_monitor_file), flen);
#endif /* __WIN__ */
if(flen > 64000 - 1) { if(flen > 64000 - 1) {
flen = 64000 - 1; flen = 64000 - 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