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
1937feae
Commit
1937feae
authored
Jun 06, 2002
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing error
parent
6bc3fc6b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sql/sql_cache.cc
sql/sql_cache.cc
+3
-2
No files found.
sql/sql_cache.cc
View file @
1937feae
...
@@ -1218,6 +1218,7 @@ ulong Query_cache::init_cache()
...
@@ -1218,6 +1218,7 @@ ulong Query_cache::init_cache()
uint
mem_bin_count
,
num
,
step
;
uint
mem_bin_count
,
num
,
step
;
ulong
mem_bin_size
,
prev_size
,
inc
;
ulong
mem_bin_size
,
prev_size
,
inc
;
ulong
additional_data_size
,
max_mem_bin_size
,
approx_additional_data_size
;
ulong
additional_data_size
,
max_mem_bin_size
,
approx_additional_data_size
;
int
align
;
DBUG_ENTER
(
"Query_cache::init_cache"
);
DBUG_ENTER
(
"Query_cache::init_cache"
);
if
(
!
initialized
)
if
(
!
initialized
)
...
@@ -1228,8 +1229,8 @@ ulong Query_cache::init_cache()
...
@@ -1228,8 +1229,8 @@ ulong Query_cache::init_cache()
if
(
query_cache_size
<
approx_additional_data_size
)
if
(
query_cache_size
<
approx_additional_data_size
)
goto
err
;
goto
err
;
query_cache_size
-=
approx_additional_data_size
;
query_cache_size
-=
approx_additional_data_size
;
int
align
=
query_cache_size
%
ALIGN_SIZE
(
1
);
align
=
query_cache_size
%
ALIGN_SIZE
(
1
);
if
(
align
)
if
(
align
)
{
{
query_cache_size
-=
align
;
query_cache_size
-=
align
;
...
...
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