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
1bf863a9
Commit
1bf863a9
authored
Jul 03, 2020
by
Julius Goryavsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.4-MDEV-22222' of
https://github.com/codership/mariadb-server
into 10.4-MDEV-22222
parents
e6595a06
2b8b7394
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
mysql-test/suite/galera/r/galera_lock_tables_in_transaction.result
...t/suite/galera/r/galera_lock_tables_in_transaction.result
+12
-0
mysql-test/suite/galera/t/galera_lock_tables_in_transaction.test
...est/suite/galera/t/galera_lock_tables_in_transaction.test
+21
-0
sql/sql_parse.cc
sql/sql_parse.cc
+6
-0
No files found.
mysql-test/suite/galera/r/galera_lock_tables_in_transaction.result
0 → 100644
View file @
1bf863a9
connection node_2;
connection node_1;
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
START TRANSACTION;
INSERT INTO t1 VALUES (1);
LOCK TABLES t2 READ;
ERROR 42S02: Table 'test.t2' doesn't exist
START TRANSACTION;
INSERT INTO t1 VALUES (1);
LOCK TABLES t1 READ;
UNLOCK TABLES;
DROP TABLE t1;
mysql-test/suite/galera/t/galera_lock_tables_in_transaction.test
0 → 100644
View file @
1bf863a9
#
# Check `LOCK TABLES` command with or without existing table in database.
# Test case for MDEV-22222 / MDEV-22223
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
InnoDB
;
START
TRANSACTION
;
INSERT
INTO
t1
VALUES
(
1
);
--
error
ER_NO_SUCH_TABLE
LOCK
TABLES
t2
READ
;
START
TRANSACTION
;
INSERT
INTO
t1
VALUES
(
1
);
LOCK
TABLES
t1
READ
;
UNLOCK
TABLES
;
DROP
TABLE
t1
;
sql/sql_parse.cc
View file @
1bf863a9
...
...
@@ -4990,6 +4990,12 @@ mysql_execute_command(THD *thd)
if
(
res
)
goto
error
;
#ifdef WITH_WSREP
/* Clean up the previous transaction on implicit commit. */
if
(
wsrep_on
(
thd
)
&&
!
wsrep_not_committed
(
thd
)
&&
wsrep_after_statement
(
thd
))
goto
error
;
#endif
/* We can't have any kind of table locks while backup is active */
if
(
thd
->
current_backup_stage
!=
BACKUP_FINISHED
)
{
...
...
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