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
d638e3bf
Commit
d638e3bf
authored
May 04, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pzaitsev@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/pz/mysql/mysql-4.0-root
parents
81a752eb
a8841f01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
innobase/os/os0file.c
innobase/os/os0file.c
+20
-0
No files found.
innobase/os/os0file.c
View file @
d638e3bf
...
...
@@ -752,7 +752,12 @@ os_file_set_size(
offset
=
0
;
low
=
(
ib_longlong
)
size
+
(((
ib_longlong
)
size_high
)
<<
32
);
if
(
low
>=
(
ib_longlong
)(
100
*
1024
*
1024
))
{
fprintf
(
stderr
,
"InnoDB: Progress in MB:"
);
}
while
(
offset
<
low
)
{
if
(
low
-
offset
<
UNIV_PAGE_SIZE
*
512
)
{
n_bytes
=
(
ulint
)(
low
-
offset
);
...
...
@@ -768,9 +773,24 @@ os_file_set_size(
ut_free
(
buf2
);
goto
error_handling
;
}
/* Print about progress for each 100 MB written */
if
((
offset
+
n_bytes
)
/
(
ib_longlong
)(
100
*
1024
*
1024
)
!=
offset
/
(
ib_longlong
)(
100
*
1024
*
1024
))
{
fprintf
(
stderr
,
" %lu00"
,
(
ulint
)((
offset
+
n_bytes
)
/
(
ib_longlong
)(
100
*
1024
*
1024
)));
}
offset
+=
n_bytes
;
}
if
(
low
>=
(
ib_longlong
)(
100
*
1024
*
1024
))
{
fprintf
(
stderr
,
"
\n
"
);
}
ut_free
(
buf2
);
ret
=
os_file_flush
(
file
);
...
...
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