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
4ebb96c6
Commit
4ebb96c6
authored
Nov 14, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better fix for OPTIMIZE bug
parent
3a58dc5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
sql/ha_myisam.cc
sql/ha_myisam.cc
+6
-10
No files found.
sql/ha_myisam.cc
View file @
4ebb96c6
...
@@ -617,16 +617,12 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool optimize)
...
@@ -617,16 +617,12 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool optimize)
STATE_CRASHED_ON_REPAIR
);
STATE_CRASHED_ON_REPAIR
);
file
->
update
|=
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
;
file
->
update
|=
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
;
}
}
/* Here we need to make file->save_state and file->s->state.state
/*
equal. Unfortunately, sometime table comes locked here (so
the following 'if', thought conceptually wrong,
file->save_state represents actual table state), and sometime
is a useful optimization nevertheless.
unlocked (and actual is file->s->state.state instead). This all
is very confusing, and should be streamlined (TODO).
*/
*/
if
(
file
->
state
==
&
file
->
save_state
)
if
(
file
->
state
!=
&
file
->
s
->
state
.
state
);
file
->
s
->
state
.
state
=
file
->
save_state
;
file
->
s
->
state
.
state
=
*
file
->
state
;
else
file
->
save_state
=
file
->
s
->
state
.
state
;
if
(
file
->
s
->
base
.
auto_key
)
if
(
file
->
s
->
base
.
auto_key
)
update_auto_increment_key
(
&
param
,
file
,
1
);
update_auto_increment_key
(
&
param
,
file
,
1
);
if
(
optimize_done
)
if
(
optimize_done
)
...
...
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