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
b42fc1e7
Commit
b42fc1e7
authored
Jun 23, 2004
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/home/bar/mysql-4.1
parents
97bdd97c
3bcbdcb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
sql/ha_myisam.cc
sql/ha_myisam.cc
+22
-9
No files found.
sql/ha_myisam.cc
View file @
b42fc1e7
...
...
@@ -1013,16 +1013,29 @@ bool ha_myisam::check_and_repair(THD *thd)
if
(
!
file
->
state
->
del
&&
(
myisam_recover_options
&
HA_RECOVER_QUICK
))
check_opt
.
flags
|=
T_QUICK
;
sql_print_error
(
"Warning: Checking table: '%s'"
,
table
->
path
);
if
((
marked_crashed
=
mi_is_crashed
(
file
))
||
check
(
thd
,
&
check_opt
)
)
if
((
marked_crashed
=
mi_is_crashed
(
file
)))
{
sql_print_error
(
"Warning: Recovering table: '%s'"
,
table
->
path
);
check_opt
.
flags
=
((
myisam_recover_options
&
HA_RECOVER_BACKUP
?
T_BACKUP_DATA
:
0
)
|
(
marked_crashed
?
0
:
T_QUICK
)
|
(
myisam_recover_options
&
HA_RECOVER_FORCE
?
0
:
T_SAFE_REPAIR
)
|
T_AUTO_REPAIR
);
if
(
repair
(
thd
,
&
check_opt
))
error
=
1
;
char
*
old_query
=
thd
->
query
;
uint
old_query_length
=
thd
->
query_length
;
pthread_mutex_lock
(
&
LOCK_thread_count
);
thd
->
query
=
table
->
real_name
;
thd
->
query_length
=
strlen
(
table
->
real_name
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
if
(
check
(
thd
,
&
check_opt
))
{
sql_print_error
(
"Warning: Recovering table: '%s'"
,
table
->
path
);
check_opt
.
flags
=
((
myisam_recover_options
&
HA_RECOVER_BACKUP
?
T_BACKUP_DATA
:
0
)
|
(
marked_crashed
?
0
:
T_QUICK
)
|
(
myisam_recover_options
&
HA_RECOVER_FORCE
?
0
:
T_SAFE_REPAIR
)
|
T_AUTO_REPAIR
);
if
(
repair
(
thd
,
&
check_opt
))
error
=
1
;
}
pthread_mutex_lock
(
&
LOCK_thread_count
);
thd
->
query
=
old_query
;
thd
->
query_length
=
old_query_length
;
pthread_mutex_unlock
(
&
LOCK_thread_count
);
}
DBUG_RETURN
(
error
);
}
...
...
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