Commit e51887b0 authored by monty@mysql.com's avatar monty@mysql.com

Portability fix

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