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
28113396
Commit
28113396
authored
Dec 09, 2003
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
key_cache.result, key_cache.test, mf_keycache.c:
Fixed a wrong return code by the function init_key_cache.
parent
f913b942
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
mysql-test/r/key_cache.result
mysql-test/r/key_cache.result
+3
-1
mysql-test/t/key_cache.test
mysql-test/t/key_cache.test
+5
-1
mysys/mf_keycache.c
mysys/mf_keycache.c
+1
-1
No files found.
mysql-test/r/key_cache.result
View file @
28113396
...
...
@@ -256,4 +256,6 @@ Table Op Msg_type Msg_text
test.t1 assign_to_keycache status OK
test.t2 assign_to_keycache status OK
drop table t1,t2,t3;
set global keycache1.key_buffer_size=0;
set global keycache2.key_buffer_size=0;
set global keycache3.key_buffer_size=100;
set global keycache3.key_buffer_size=0;
mysql-test/t/key_cache.test
View file @
28113396
...
...
@@ -135,4 +135,8 @@ drop table t1,t2,t3;
# Cleanup
# We don't reset keycache2 as we want to ensure that mysqld will reset it
set
global
keycache1
.
key_buffer_size
=
0
;
set
global
keycache2
.
key_buffer_size
=
0
;
# Test to set up a too small size for a key cache (bug #2064)
set
global
keycache3
.
key_buffer_size
=
100
;
set
global
keycache3
.
key_buffer_size
=
0
;
mysys/mf_keycache.c
View file @
28113396
...
...
@@ -391,7 +391,7 @@ int init_key_cache(KEY_CACHE *keycache, uint key_cache_block_size,
}
keycache
->
blocks
=
keycache
->
disk_blocks
>
0
?
keycache
->
disk_blocks
:
0
;
DBUG_RETURN
((
int
)
blocks
);
DBUG_RETURN
((
int
)
keycache
->
disk_
blocks
);
err:
error
=
my_errno
;
...
...
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