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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fa0628a6
Commit
fa0628a6
authored
Jul 22, 2014
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-6456: Add progress indication for "Reading tablespace information from the .ibd files"
# of processed files is printed every 15 sec.
parent
dbc79ce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
storage/xtradb/fil/fil0fil.cc
storage/xtradb/fil/fil0fil.cc
+18
-0
No files found.
storage/xtradb/fil/fil0fil.cc
View file @
fa0628a6
...
...
@@ -4677,6 +4677,7 @@ fil_file_readdir_next_file(
return
(
-
1
);
}
#define CHECK_TIME_EVERY_N_FILES 10
/********************************************************************//**
At the server startup, if we need crash recovery, scans the database
directories under the MySQL datadir, looking for .ibd files. Those files are
...
...
@@ -4693,6 +4694,9 @@ fil_load_single_table_tablespaces(void)
int
ret
;
char
*
dbpath
=
NULL
;
ulint
dbpath_len
=
100
;
ulint
files_read
=
0
;
ulint
files_read_at_last_check
=
0
;
ib_time_t
prev_report_time
=
ut_time
();
os_file_dir_t
dir
;
os_file_dir_t
dbdir
;
os_file_stat_t
dbinfo
;
...
...
@@ -4771,6 +4775,20 @@ fil_load_single_table_tablespaces(void)
try opening the file */
fil_load_single_table_tablespace
(
dbinfo
.
name
,
fileinfo
.
name
);
files_read
++
;
if
(
files_read
-
files_read_at_last_check
>
CHECK_TIME_EVERY_N_FILES
)
{
ib_time_t
cur_time
=
ut_time
();
files_read_at_last_check
=
files_read
;
double
time_elapsed
=
ut_difftime
(
cur_time
,
prev_report_time
);
if
(
time_elapsed
>
15
)
{
ib_logf
(
IB_LOG_LEVEL_INFO
,
"Processed %ld .ibd/.isl files"
,
files_read
);
prev_report_time
=
cur_time
;
}
}
}
next_file_item:
ret
=
fil_file_readdir_next_file
(
&
err
,
...
...
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