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
41eb82fd
Commit
41eb82fd
authored
Dec 18, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/mysql_src/mysql-4.1-clean
parents
cd53739f
2a046c6c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
client/mysqldump.c
client/mysqldump.c
+1
-1
mysql-test/r/flush_block_commit.result
mysql-test/r/flush_block_commit.result
+8
-0
mysql-test/t/flush_block_commit.test
mysql-test/t/flush_block_commit.test
+8
-0
sql/sql_parse.cc
sql/sql_parse.cc
+0
-5
No files found.
client/mysqldump.c
View file @
41eb82fd
...
...
@@ -1914,7 +1914,7 @@ static int init_dumping(char *database)
sprintf
(
qbuf
,
"SHOW CREATE DATABASE IF NOT EXISTS %s"
,
qdatabase
);
if
(
mysql_query
_with_error_report
(
sock
,
&
dbinfo
,
qbuf
))
if
(
mysql_query
(
sock
,
qbuf
)
||
!
(
dbinfo
=
mysql_store_result
(
sock
)
))
{
/* Old server version, dump generic CREATE DATABASE */
fprintf
(
md_result_file
,
...
...
mysql-test/r/flush_block_commit.result
View file @
41eb82fd
...
...
@@ -28,4 +28,12 @@ commit;
unlock tables;
flush tables with read lock;
unlock tables;
begin;
select * from t1;
a
1
10
show create database test;
Database Create Database
test CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET latin1 */
drop table t1;
mysql-test/t/flush_block_commit.test
View file @
41eb82fd
# Let's see if FLUSH TABLES WITH READ LOCK blocks COMMIT of existing
# transactions.
# We verify that we did not introduce a deadlock.
# This is intended to mimick how mysqldump and innobackup work.
--
source
include
/
have_innodb
.
inc
...
...
@@ -63,4 +64,11 @@ unlock tables;
connection
con2
;
flush
tables
with
read
lock
;
# bug caused hang here
unlock
tables
;
# BUG#7358 SHOW CREATE DATABASE fails if open transaction
begin
;
select
*
from
t1
;
show
create
database
test
;
drop
table
t1
;
sql/sql_parse.cc
View file @
41eb82fd
...
...
@@ -3249,11 +3249,6 @@ purposes internal to the MySQL server", MYF(0));
}
if
(
check_access
(
thd
,
SELECT_ACL
,
lex
->
name
,
0
,
1
,
0
))
break
;
if
(
thd
->
locked_tables
||
thd
->
active_transaction
())
{
send_error
(
thd
,
ER_LOCK_OR_ACTIVE_TRANSACTION
);
goto
error
;
}
res
=
mysqld_show_create_db
(
thd
,
lex
->
name
,
&
lex
->
create_info
);
break
;
}
...
...
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