diff options
author | unknown <marko@hundin.mysql.fi> | 2004-05-05 15:54:28 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-05-05 15:54:28 +0300 |
commit | 48260e9d92111b40d95854e15233205a87d95da6 (patch) | |
tree | d39c68b7ae22c2cf5072e992e03afcf12836d64b /sql/ha_innodb.cc | |
parent | 7d918f213e64df4af4b00d0798fadf9ed1a872fb (diff) | |
download | mariadb-git-48260e9d92111b40d95854e15233205a87d95da6.tar.gz |
InnoDB portability fix: new function os_file_set_eof()
innobase/include/os0file.h:
Add os_file_set_eof()
innobase/os/os0file.c:
Add os_file_set_eof()
innobase/srv/srv0srv.c:
Replace chsize() or ftruncate() with os_file_set_eof()
sql/ha_innodb.cc:
Replace my_chsize() with os_file_set_eof()
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 690e83b2a4b..ac7ccf5c11a 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -4648,7 +4648,7 @@ innodb_show_status( rewind(srv_monitor_file); srv_printf_innodb_monitor(srv_monitor_file); flen = ftell(srv_monitor_file); - my_chsize(fileno(srv_monitor_file), flen, 0, MYF(0)); + os_file_set_eof(srv_monitor_file); if(flen > 64000 - 1) { flen = 64000 - 1; } |