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
ffb97b49
Commit
ffb97b49
authored
Aug 31, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LOCK+modify+OPTIMIZE bugfix
parent
c8f6ea2c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
Docs/manual.texi
Docs/manual.texi
+3
-0
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+2
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+11
-0
sql/ha_myisam.cc
sql/ha_myisam.cc
+1
-0
No files found.
Docs/manual.texi
View file @
ffb97b49
...
...
@@ -46929,6 +46929,9 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.53
@itemize @bullet
@item
Fixed a bug that @code{OPTIMIZE} of locked and modified MyISAM table,
reported table corruption.
@item
Fixed a @code{BDB}-related @code{ALTER TABLE} bug with dropping a column
and shutting down immediately thereafter.
@item
mysql-test/r/myisam.result
View file @
ffb97b49
...
...
@@ -36,3 +36,5 @@ table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4
Table Op Msg_type Msg_text
test.t1 optimize status OK
mysql-test/t/myisam.test
View file @
ffb97b49
...
...
@@ -64,3 +64,14 @@ explain select a,b from t1 order by b;
explain
select
a
,
b
from
t1
;
explain
select
a
,
b
,
c
from
t1
;
drop
table
t1
;
#
# Test of OPTIMIZE of locked and modified tables
#
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(
1
),
(
2
),
(
3
);
LOCK
TABLES
t1
WRITE
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
),
(
3
);
OPTIMIZE
TABLE
t1
;
DROP
TABLE
t1
;
sql/ha_myisam.cc
View file @
ffb97b49
...
...
@@ -561,6 +561,7 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool optimize)
}
if
(
!
optimize
||
memcmp
(
file
->
state
,
&
share
->
state
.
state
,
sizeof
(
MI_STATUS_INFO
))
||
((
file
->
state
->
del
||
share
->
state
.
split
!=
file
->
state
->
records
)
&&
(
!
param
.
opt_rep_quick
||
!
(
share
->
state
.
changed
&
STATE_NOT_OPTIMIZED_KEYS
))))
...
...
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