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
b5b3cb31
Commit
b5b3cb31
authored
Aug 02, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove non-varying variable ibuf->meter and related constant IBUF_THRESHOLD.
parent
7acf3b8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
ibuf/ibuf0ibuf.c
ibuf/ibuf0ibuf.c
+0
-1
include/ibuf0ibuf.ic
include/ibuf0ibuf.ic
+1
-10
No files found.
ibuf/ibuf0ibuf.c
View file @
b5b3cb31
...
...
@@ -373,7 +373,6 @@ ibuf_init_at_db_start(void)
ibuf
->
max_size
=
buf_pool_get_curr_size
()
/
UNIV_PAGE_SIZE
/
IBUF_POOL_SIZE_PER_MAX_SIZE
;
ibuf
->
meter
=
IBUF_THRESHOLD
+
1
;
UT_LIST_INIT
(
ibuf
->
data_list
);
...
...
include/ibuf0ibuf.ic
View file @
b5b3cb31
...
...
@@ -39,19 +39,11 @@ struct ibuf_data_struct{
ulint n_merged_recs;/* number of records merged */
};
/* If the ibuf meter exceeds this value, then the suitable inserts are made to
the insert buffer instead of directly to the disk page */
#define IBUF_THRESHOLD 50
struct ibuf_struct{
ulint size; /* current size of the ibuf index
trees in pages */
ulint max_size; /* recommended maximum size in pages
for the ibuf index tree */
ulint meter; /* heuristic meter which measures
desirability of doing inserts to the
insert buffer instead of directly to
the disk page */
UT_LIST_BASE_NODE_T(ibuf_data_t) data_list;
/* list of ibuf data structs for
each tablespace */
...
...
@@ -88,8 +80,7 @@ ibuf_should_try(
decide */
{
if (!(index->type & DICT_CLUSTERED)
&& (ignore_sec_unique || !(index->type & DICT_UNIQUE))
&& ibuf->meter > IBUF_THRESHOLD) {
&& (ignore_sec_unique || !(index->type & DICT_UNIQUE))) {
ibuf_flush_count++;
...
...
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