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
c8c7aab6
Commit
c8c7aab6
authored
Jul 30, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#937
myisamchk.c: help text clarified mi_check.c: allow one to "analyze" empty table :)
parent
4e22494e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
myisam/mi_check.c
myisam/mi_check.c
+6
-5
myisam/myisamchk.c
myisam/myisamchk.c
+7
-3
No files found.
myisam/mi_check.c
View file @
c8c7aab6
...
...
@@ -3562,11 +3562,12 @@ int update_state_info(MI_CHECK *param, MI_INFO *info,uint update)
uint
i
,
key_parts
=
mi_uint2korr
(
share
->
state
.
header
.
key_parts
);
share
->
state
.
rec_per_key_rows
=
info
->
state
->
records
;
share
->
state
.
changed
&=
~
STATE_NOT_ANALYZED
;
for
(
i
=
0
;
i
<
key_parts
;
i
++
)
{
if
(
!
(
share
->
state
.
rec_per_key_part
[
i
]
=
param
->
rec_per_key_part
[
i
]))
share
->
state
.
changed
|=
STATE_NOT_ANALYZED
;
}
if
(
info
->
state
->
records
)
for
(
i
=
0
;
i
<
key_parts
;
i
++
)
{
if
(
!
(
share
->
state
.
rec_per_key_part
[
i
]
=
param
->
rec_per_key_part
[
i
]))
share
->
state
.
changed
|=
STATE_NOT_ANALYZED
;
}
}
if
(
update
&
(
UPDATE_STAT
|
UPDATE_SORT
|
UPDATE_TIME
|
UPDATE_AUTO_INC
))
{
...
...
myisam/myisamchk.c
View file @
c8c7aab6
...
...
@@ -357,11 +357,15 @@ static void usage(void)
-e, --extend-check Check the table VERY throughly. Only use this in
\n
\
extreme cases as myisamchk should normally be able to
\n
\
find out if the table is ok even without this switch
\n
\
-F, --fast
Check only tables that haven't been closed properly
\n
\
-C, --check-only-changed
\n
\
Check only tables that have changed since last check
\n
\
-F, --fast
Check only tables that haven't been closed properly.
\n
\
It also applies to other requested actions (e.g. --analyze
\n
\
will be ignored if the table is already analyzed).
\n
\
-f, --force Restart with '-r' if there are any errors in the table.
\n
\
States will be updated as with '--update-state'
\n
\
-C, --check-only-changed
\n
\
Check only tables that have changed since last check.
\n
\
It also applies to other requested actions (e.g. --analyze
\n
\
will be ignored if the table is already analyzed).
\n
\
-i, --information Print statistics information about table that is checked
\n
\
-m, --medium-check Faster than extend-check, but only finds 99.99% of
\n
\
all errors. Should be good enough for most cases
\n
\
...
...
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