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
54fb1f59
Commit
54fb1f59
authored
Dec 10, 2010
by
Dmitry Shulga
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge from mysql-5.1-bugteam for bug#54486.
parents
e3df7c2b
dfb62272
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
sql/sql_db.cc
sql/sql_db.cc
+11
-11
storage/myisam/mi_check.c
storage/myisam/mi_check.c
+2
-0
No files found.
sql/sql_db.cc
View file @
54fb1f59
...
...
@@ -794,14 +794,9 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
}
}
thd
->
push_internal_handler
(
&
err_handler
);
if
(
find_db_tables_and_rm_known_files
(
thd
,
dirp
,
db
,
path
,
&
tables
,
&
found_other_files
))
{
thd
->
pop_internal_handler
();
goto
exit
;
}
/*
Disable drop of enabled log tables, must be done before name locking.
...
...
@@ -815,7 +810,6 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
table
->
table_name_length
,
table
->
table_name
,
true
))
{
my_error
(
ER_BAD_LOG_STATEMENT
,
MYF
(
0
),
"DROP"
);
thd
->
pop_internal_handler
();
goto
exit
;
}
}
...
...
@@ -825,10 +819,7 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
if
(
lock_table_names
(
thd
,
tables
,
NULL
,
thd
->
variables
.
lock_wait_timeout
,
MYSQL_OPEN_SKIP_TEMPORARY
)
||
lock_db_routines
(
thd
,
db
))
{
thd
->
pop_internal_handler
();
goto
exit
;
}
/* mysql_ha_rm_tables() requires a non-null TABLE_LIST. */
if
(
tables
)
...
...
@@ -841,6 +832,7 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
deleted_tables
++
;
}
thd
->
push_internal_handler
(
&
err_handler
);
if
(
thd
->
killed
||
(
tables
&&
mysql_rm_table_no_locks
(
thd
,
tables
,
true
,
false
,
true
,
true
)))
{
...
...
@@ -1094,8 +1086,16 @@ static bool find_db_tables_and_rm_known_files(THD *thd, MY_DIR *dirp,
else
{
strxmov
(
filePath
,
path
,
"/"
,
file
->
name
,
NullS
);
if
(
mysql_file_delete_with_symlink
(
key_file_misc
,
filePath
,
MYF
(
MY_WME
)))
DBUG_RETURN
(
true
);
/*
We ignore ENOENT error in order to skip files that was deleted
by concurrently running statement like REAPIR TABLE ...
*/
if
(
my_delete_with_symlink
(
filePath
,
MYF
(
0
))
&&
my_errno
!=
ENOENT
)
{
my_error
(
EE_DELETE
,
MYF
(
0
),
filePath
,
my_errno
);
DBUG_RETURN
(
true
);
}
}
}
*
tables
=
tot_list
;
...
...
storage/myisam/mi_check.c
View file @
54fb1f59
...
...
@@ -1748,6 +1748,8 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
MYF
(
MY_REDEL_MAKE_BACKUP
)
:
MYF
(
0
)))
||
mi_open_datafile
(
info
,
share
,
name
,
-
1
))
got_error
=
1
;
param
->
retry_repair
=
0
;
}
}
if
(
got_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