mirror of
https://github.com/MariaDB/server.git
synced 2025-05-29 21:42:28 +03:00
Portability fix
This commit is contained in:
parent
b33f8fa778
commit
7d918f213e
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user