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
6ea859e6
Commit
6ea859e6
authored
Nov 10, 2010
by
Jimmy Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port fix for Bug #48026 to 5.1 built-in and plugin: Log start and end
of InnoDB buffer pool initialization to the error log
parent
541b2152
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
0 deletions
+48
-0
storage/innobase/srv/srv0start.c
storage/innobase/srv/srv0start.c
+22
-0
storage/innodb_plugin/ChangeLog
storage/innodb_plugin/ChangeLog
+6
-0
storage/innodb_plugin/srv/srv0start.c
storage/innodb_plugin/srv/srv0start.c
+20
-0
No files found.
storage/innobase/srv/srv0start.c
View file @
6ea859e6
...
...
@@ -1247,6 +1247,23 @@ innobase_start_or_create_for_mysql(void)
fil_init
(
srv_max_n_open_files
);
/* Print time to initialize the buffer pool */
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Initializing buffer pool, size ="
);
if
(
srv_pool_size
*
UNIV_PAGE_SIZE
>=
1024
*
1024
*
1024
)
{
fprintf
(
stderr
,
" %.1fG
\n
"
,
((
double
)
(
srv_pool_size
*
UNIV_PAGE_SIZE
))
/
(
1024
*
1024
*
1024
));
}
else
{
fprintf
(
stderr
,
" %.1fM
\n
"
,
((
double
)
(
srv_pool_size
*
UNIV_PAGE_SIZE
))
/
(
1024
*
1024
));
}
if
(
srv_use_awe
)
{
fprintf
(
stderr
,
"InnoDB: Using AWE: Memory window is %lu MB"
...
...
@@ -1267,6 +1284,8 @@ innobase_start_or_create_for_mysql(void)
srv_pool_size
);
}
ut_print_timestamp
(
stderr
);
if
(
ret
==
NULL
)
{
fprintf
(
stderr
,
"InnoDB: Fatal error: cannot allocate the memory"
...
...
@@ -1275,6 +1294,9 @@ innobase_start_or_create_for_mysql(void)
return
(
DB_ERROR
);
}
fprintf
(
stderr
,
" InnoDB: Completed initialization of buffer pool
\n
"
);
fsp_init
();
log_init
();
...
...
storage/innodb_plugin/ChangeLog
View file @
6ea859e6
2010-11-10 The InnoDB Team
* srv/srv0start.c:
Fix Bug #48026 Log start and end of InnoDB buffer pool
initialization to the error log
2010-11-03 The InnoDB Team
* include/btr0btr.h, include/btr0btr.ic, dict/dict0crea.c:
...
...
storage/innodb_plugin/srv/srv0start.c
View file @
6ea859e6
...
...
@@ -1286,8 +1286,25 @@ innobase_start_or_create_for_mysql(void)
fil_init
(
srv_file_per_table
?
50000
:
5000
,
srv_max_n_open_files
);
/* Print time to initialize the buffer pool */
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Initializing buffer pool, size ="
);
if
(
srv_buf_pool_size
>=
1024
*
1024
*
1024
)
{
fprintf
(
stderr
,
" %.1fG
\n
"
,
((
double
)
srv_buf_pool_size
)
/
(
1024
*
1024
*
1024
));
}
else
{
fprintf
(
stderr
,
" %.1fM
\n
"
,
((
double
)
srv_buf_pool_size
)
/
(
1024
*
1024
));
}
ret
=
buf_pool_init
();
ut_print_timestamp
(
stderr
);
if
(
ret
==
NULL
)
{
fprintf
(
stderr
,
"InnoDB: Fatal error: cannot allocate the memory"
...
...
@@ -1296,6 +1313,9 @@ innobase_start_or_create_for_mysql(void)
return
(
DB_ERROR
);
}
fprintf
(
stderr
,
" InnoDB: Completed initialization of buffer pool
\n
"
);
#ifdef UNIV_DEBUG
/* We have observed deadlocks with a 5MB buffer pool but
the actual lower limit could very well be a little higher. */
...
...
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