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
f043c7c4
Commit
f043c7c4
authored
Jan 11, 2007
by
malff/marcsql@weblab.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into weblab.(none):/home/marcsql/TREE/mysql-5.1-25183
parents
cb817476
f2347e40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
sql/set_var.cc
sql/set_var.cc
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+10
-3
No files found.
sql/set_var.cc
View file @
f043c7c4
...
...
@@ -3905,7 +3905,7 @@ bool sys_var_opt_readonly::update(THD *thd, set_var *var)
can cause to wait on a read lock, it's required for the client application
to unlock everything, and acceptable for the server to wait on all locks.
*/
if
(
close_cached_tables
(
thd
,
true
,
NULL
,
false
))
if
(
result
=
close_cached_tables
(
thd
,
true
,
NULL
,
false
))
goto
end_with_read_lock
;
if
(
result
=
make_global_read_lock_block_commit
(
thd
))
...
...
sql/sql_table.cc
View file @
f043c7c4
...
...
@@ -5405,16 +5405,19 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
{
my_message
(
ER_LOCK_OR_ACTIVE_TRANSACTION
,
ER
(
ER_LOCK_OR_ACTIVE_TRANSACTION
),
MYF
(
0
));
DBUG_RETURN
(
1
);
DBUG_RETURN
(
TRUE
);
}
if
(
wait_if_global_read_lock
(
thd
,
0
,
1
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
TRUE
);
VOID
(
pthread_mutex_lock
(
&
LOCK_open
));
if
(
lock_table_names
(
thd
,
table_list
))
{
error
=
TRUE
;
goto
view_err
;
}
error
=
0
;
error
=
FALSE
;
if
(
!
do_rename
(
thd
,
table_list
,
new_db
,
new_name
,
new_name
,
1
))
{
if
(
mysql_bin_log
.
is_open
())
...
...
@@ -5555,6 +5558,10 @@ view_err:
error
=
table
->
file
->
disable_indexes
(
HA_KEY_SWITCH_NONUNIQ_SAVE
);
/* COND_refresh will be signaled in close_thread_tables() */
break
;
default:
DBUG_ASSERT
(
FALSE
);
error
=
0
;
break
;
}
if
(
error
==
HA_ERR_WRONG_COMMAND
)
{
...
...
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