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
59ec36ce
Commit
59ec36ce
authored
Jul 21, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the tablespace cache hash size 100 or 1000 times bigger. Fixes bug
#21112.
parent
829429cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
fil/fil0fil.c
fil/fil0fil.c
+9
-6
No files found.
fil/fil0fil.c
View file @
59ec36ce
...
...
@@ -251,9 +251,6 @@ struct fil_system_struct {
initialized. */
fil_system_t
*
fil_system
=
NULL
;
/* The tablespace memory cache hash table size */
#define FIL_SYSTEM_HASH_SIZE 50
/* TODO: make bigger! */
/************************************************************************
NOTE: you must call fil_mutex_enter_and_prepare_for_io() first!
...
...
@@ -1323,11 +1320,17 @@ fil_init(
/*=====*/
ulint
max_n_open
)
/* in: max number of open files */
{
ulint
hash_size
;
ut_a
(
fil_system
==
NULL
);
/*printf("Initializing the tablespace cache with max %lu open files\n",
max_n_open); */
fil_system
=
fil_system_create
(
FIL_SYSTEM_HASH_SIZE
,
max_n_open
);
if
(
srv_file_per_table
)
{
hash_size
=
50000
;
}
else
{
hash_size
=
5000
;
}
fil_system
=
fil_system_create
(
hash_size
,
max_n_open
);
}
/***********************************************************************
...
...
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