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
1b0e0abb
Commit
1b0e0abb
authored
Nov 14, 2007
by
istruewing@stella.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge stella.local:/home2/mydev/mysql-5.1-ateam
into stella.local:/home2/mydev/mysql-5.1-axmrg
parents
165334aa
05d341d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+8
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+6
-0
storage/myisam/mi_check.c
storage/myisam/mi_check.c
+1
-1
No files found.
mysql-test/r/myisam.result
View file @
1b0e0abb
...
@@ -1818,6 +1818,14 @@ ALTER TABLE t1 ENABLE KEYS;
...
@@ -1818,6 +1818,14 @@ ALTER TABLE t1 ENABLE KEYS;
SHOW TABLE STATUS LIKE 't1';
SHOW TABLE STATUS LIKE 't1';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # #
t1 MyISAM 10 Fixed 1 # # # 3072 # # # # # # #
#
Enable keys with parallel repair
SET @@myisam_repair_threads=2;
ALTER TABLE t1 DISABLE KEYS;
ALTER TABLE t1 ENABLE KEYS;
SET @@myisam_repair_threads=1;
CHECK TABLE t1 EXTENDED;
Table Op Msg_type Msg_text
test.t1 check status OK
DROP TABLE t1;
DROP TABLE t1;
End of 5.0 tests
End of 5.0 tests
create table t1 (a int not null, key `a` (a) key_block_size=1024);
create table t1 (a int not null, key `a` (a) key_block_size=1024);
...
...
mysql-test/t/myisam.test
View file @
1b0e0abb
...
@@ -1170,6 +1170,12 @@ SHOW TABLE STATUS LIKE 't1';
...
@@ -1170,6 +1170,12 @@ SHOW TABLE STATUS LIKE 't1';
#--exec ls -log var/master-data/test/t1.MYI
#--exec ls -log var/master-data/test/t1.MYI
#--exec myisamchk -dvv var/master-data/test/t1.MYI
#--exec myisamchk -dvv var/master-data/test/t1.MYI
#--exec myisamchk -iev var/master-data/test/t1.MYI
#--exec myisamchk -iev var/master-data/test/t1.MYI
--
echo
# Enable keys with parallel repair
SET
@@
myisam_repair_threads
=
2
;
ALTER
TABLE
t1
DISABLE
KEYS
;
ALTER
TABLE
t1
ENABLE
KEYS
;
SET
@@
myisam_repair_threads
=
1
;
CHECK
TABLE
t1
EXTENDED
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
...
...
storage/myisam/mi_check.c
View file @
1b0e0abb
...
@@ -1488,7 +1488,7 @@ static int mi_drop_all_indexes(MI_CHECK *param, MI_INFO *info, my_bool force)
...
@@ -1488,7 +1488,7 @@ static int mi_drop_all_indexes(MI_CHECK *param, MI_INFO *info, my_bool force)
/* Remove all key blocks of this index file from key cache. */
/* Remove all key blocks of this index file from key cache. */
if
((
error
=
flush_key_blocks
(
share
->
key_cache
,
share
->
kfile
,
if
((
error
=
flush_key_blocks
(
share
->
key_cache
,
share
->
kfile
,
FLUSH_IGNORE_CHANGED
)))
FLUSH_IGNORE_CHANGED
)))
goto
end
;
goto
end
;
/* purecov: inspected */
/* Clear index root block pointers. */
/* Clear index root block pointers. */
for
(
i
=
0
;
i
<
share
->
base
.
keys
;
i
++
)
for
(
i
=
0
;
i
<
share
->
base
.
keys
;
i
++
)
...
...
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