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
091bc7f5
Commit
091bc7f5
authored
Jan 09, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buf0buf.c:
Add a sanity check awe mem >= buf pool size
parent
d5a1ddd4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
innobase/buf/buf0buf.c
innobase/buf/buf0buf.c
+9
-0
No files found.
innobase/buf/buf0buf.c
View file @
091bc7f5
...
@@ -418,6 +418,15 @@ buf_pool_init(
...
@@ -418,6 +418,15 @@ buf_pool_init(
ut_a
(
max_size
==
curr_size
);
ut_a
(
max_size
==
curr_size
);
ut_a
(
srv_use_awe
||
n_frames
==
max_size
);
ut_a
(
srv_use_awe
||
n_frames
==
max_size
);
if
(
n_frames
>
curr_size
)
{
fprintf
(
stderr
,
"InnoDB: AWE: Error: you must specify in my.cnf .._awe_mem_mb larger
\n
"
"InnoDB: than .._buffer_pool_size. Now the former is %lu pages,
\n
"
"InnoDB: the latter %lu pages.
\n
"
,
curr_size
,
n_frames
);
return
(
NULL
);
}
buf_pool
=
mem_alloc
(
sizeof
(
buf_pool_t
));
buf_pool
=
mem_alloc
(
sizeof
(
buf_pool_t
));
/* 1. Initialize general fields
/* 1. Initialize general fields
...
...
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