Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
fc7ae6a2
Commit
fc7ae6a2
authored
May 05, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Truncate "<datadir>/innodb.status.<pid>" to its actual size
(Bug #3596)
parent
09fc3594
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
innobase/srv/srv0srv.c
innobase/srv/srv0srv.c
+5
-0
sql/ha_innodb.cc
sql/ha_innodb.cc
+5
-0
No files found.
innobase/srv/srv0srv.c
View file @
fc7ae6a2
...
...
@@ -1609,6 +1609,11 @@ loop:
mutex_enter
(
&
srv_monitor_file_mutex
);
rewind
(
srv_monitor_file
);
srv_printf_innodb_monitor
(
srv_monitor_file
);
#ifdef __WIN__
chsize
(
fileno
(
srv_monitor_file
),
ftell
(
srv_monitor_file
));
#else
/* __WIN__ */
ftruncate
(
fileno
(
srv_monitor_file
),
ftell
(
srv_monitor_file
));
#endif
/* __WIN__ */
mutex_exit
(
&
srv_monitor_file_mutex
);
if
(
srv_print_innodb_tablespace_monitor
...
...
sql/ha_innodb.cc
View file @
fc7ae6a2
...
...
@@ -4648,6 +4648,11 @@ 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__ */
if
(
flen
>
64000
-
1
)
{
flen
=
64000
-
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment