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
1bc3899a
Commit
1bc3899a
authored
May 08, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.0' into 10.1
parents
de0e5fe1
34045af0
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
473 additions
and
1561 deletions
+473
-1561
mysql-test/extra/rpl_tests/rpl_implicit_commit_binlog.test
mysql-test/extra/rpl_tests/rpl_implicit_commit_binlog.test
+89
-337
mysql-test/r/assign_key_cache.result
mysql-test/r/assign_key_cache.result
+13
-0
mysql-test/r/assign_key_cache_debug.result
mysql-test/r/assign_key_cache_debug.result
+0
-0
mysql-test/r/implicit_commit.result
mysql-test/r/implicit_commit.result
+2
-2
mysql-test/suite/rpl/r/rpl_mixed_implicit_commit_binlog.result
...-test/suite/rpl/r/rpl_mixed_implicit_commit_binlog.result
+119
-409
mysql-test/suite/rpl/r/rpl_row_implicit_commit_binlog.result
mysql-test/suite/rpl/r/rpl_row_implicit_commit_binlog.result
+117
-406
mysql-test/suite/rpl/r/rpl_stm_implicit_commit_binlog.result
mysql-test/suite/rpl/r/rpl_stm_implicit_commit_binlog.result
+112
-403
mysql-test/t/assign_key_cache.test
mysql-test/t/assign_key_cache.test
+13
-0
mysql-test/t/assign_key_cache_debug.test
mysql-test/t/assign_key_cache_debug.test
+0
-0
sql/sql_admin.cc
sql/sql_admin.cc
+5
-2
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
sql/sql_parse.h
sql/sql_parse.h
+1
-0
No files found.
mysql-test/extra/rpl_tests/rpl_implicit_commit_binlog.test
View file @
1bc3899a
This diff is collapsed.
Click to expand it.
mysql-test/r/assign_key_cache.result
0 → 100644
View file @
1bc3899a
set global my_cache.key_buffer_size = 1024*1024;
create table t1 (i int) engine=myisam partition by hash (i) partitions 2;
xa start 'xid';
cache index t1 partition (non_existing_partition) in my_cache;
Table Op Msg_type Msg_text
test.t1 assign_to_keycache error Error in list of partitions to test.t1
cache index t1 partition (p1) in my_cache;
Table Op Msg_type Msg_text
test.t1 assign_to_keycache status OK
xa end 'xid';
xa rollback 'xid';
drop table t1;
set global my_cache.key_buffer_size = 0;
mysql-test/r/assign_key_cache
-5405
.result
→
mysql-test/r/assign_key_cache
_debug
.result
View file @
1bc3899a
File moved
mysql-test/r/implicit_commit.result
View file @
1bc3899a
...
...
@@ -562,7 +562,7 @@ INSERT INTO db1.trans (a) VALUES (1);
cache index t3 in keycache;
CALL db1.test_if_commit();
IMPLICIT COMMIT
YES
NO
set global keycache.key_buffer_size=0;
#
# SQLCOM_PRELOAD_KEYS
...
...
@@ -571,7 +571,7 @@ INSERT INTO db1.trans (a) VALUES (1);
load index into cache t3;
CALL db1.test_if_commit();
IMPLICIT COMMIT
YES
NO
#
# SQLCOM_FLUSH
#
...
...
mysql-test/suite/rpl/r/rpl_mixed_implicit_commit_binlog.result
View file @
1bc3899a
This diff is collapsed.
Click to expand it.
mysql-test/suite/rpl/r/rpl_row_implicit_commit_binlog.result
View file @
1bc3899a
This diff is collapsed.
Click to expand it.
mysql-test/suite/rpl/r/rpl_stm_implicit_commit_binlog.result
View file @
1bc3899a
This diff is collapsed.
Click to expand it.
mysql-test/t/assign_key_cache.test
0 → 100644
View file @
1bc3899a
#
# MDEV-15216 Assertion `! is_set() || m_can_overwrite_status' failed in Diagnostics_area::set_error_status upon operation inside XA
#
--
source
include
/
have_partition
.
inc
set
global
my_cache
.
key_buffer_size
=
1024
*
1024
;
create
table
t1
(
i
int
)
engine
=
myisam
partition
by
hash
(
i
)
partitions
2
;
xa
start
'xid'
;
cache
index
t1
partition
(
non_existing_partition
)
in
my_cache
;
cache
index
t1
partition
(
p1
)
in
my_cache
;
xa
end
'xid'
;
xa
rollback
'xid'
;
drop
table
t1
;
set
global
my_cache
.
key_buffer_size
=
0
;
mysql-test/t/assign_key_cache
-5405
.test
→
mysql-test/t/assign_key_cache
_debug
.test
View file @
1bc3899a
File moved
sql/sql_admin.cc
View file @
1bc3899a
...
...
@@ -1113,7 +1113,9 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
}
else
{
if
(
trans_commit_stmt
(
thd
)
||
trans_commit_implicit
(
thd
))
if
(
trans_commit_stmt
(
thd
)
||
(
stmt_causes_implicit_commit
(
thd
,
CF_IMPLICIT_COMMIT_END
)
&&
trans_commit_implicit
(
thd
)))
goto
err
;
}
close_thread_tables
(
thd
);
...
...
@@ -1147,6 +1149,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
err:
/* Make sure this table instance is not reused after the failure. */
trans_rollback_stmt
(
thd
);
if
(
stmt_causes_implicit_commit
(
thd
,
CF_IMPLICIT_COMMIT_END
))
trans_rollback
(
thd
);
if
(
table
&&
table
->
table
)
{
...
...
sql/sql_parse.cc
View file @
1bc3899a
...
...
@@ -198,7 +198,7 @@ static bool some_non_temp_table_to_be_updated(THD *thd, TABLE_LIST *tables)
/*
Implicitly commit a active transaction if statement requires so
.
Check whether the statement implicitly commits an active transaction
.
@param thd Thread handle.
@param mask Bitmask used for the SQL command match.
...
...
@@ -206,7 +206,7 @@ static bool some_non_temp_table_to_be_updated(THD *thd, TABLE_LIST *tables)
@return 0 No implicit commit
@return 1 Do a commit
*/
static
bool
stmt_causes_implicit_commit
(
THD
*
thd
,
uint
mask
)
bool
stmt_causes_implicit_commit
(
THD
*
thd
,
uint
mask
)
{
LEX
*
lex
=
thd
->
lex
;
bool
skip
=
FALSE
;
...
...
sql/sql_parse.h
View file @
1bc3899a
...
...
@@ -85,6 +85,7 @@ bool check_identifier_name(LEX_STRING *str, uint max_char_length,
uint
err_code
,
const
char
*
param_for_err_msg
);
bool
mysql_test_parse_for_slave
(
THD
*
thd
,
char
*
inBuf
,
uint
length
);
bool
sqlcom_can_generate_row_events
(
const
THD
*
thd
);
bool
stmt_causes_implicit_commit
(
THD
*
thd
,
uint
mask
);
bool
is_update_query
(
enum
enum_sql_command
command
);
bool
is_log_table_write_query
(
enum
enum_sql_command
command
);
bool
alloc_query
(
THD
*
thd
,
const
char
*
packet
,
uint
packet_length
);
...
...
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