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
231c02f7
Commit
231c02f7
authored
Apr 24, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MariaDB adjustments.
parent
c2c61bbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
scripts/mysql_config.pl
scripts/mysql_config.pl
+1
-1
sql/wsrep_hton.cc
sql/wsrep_hton.cc
+24
-24
No files found.
scripts/mysql_config.pl
View file @
231c02f7
...
...
@@ -53,7 +53,7 @@ my $cwd = cwd();
my
$basedir
;
my
$socket
=
'
/tmp/mysql.sock
';
my
$version
=
'
5.5.
59
';
my
$version
=
'
5.5.
60
';
sub
which
{
...
...
sql/wsrep_hton.cc
View file @
231c02f7
...
...
@@ -103,10 +103,10 @@ void wsrep_post_commit(THD* thd, bool all)
switch
(
thd
->
wsrep_exec_mode
)
{
case
LOCAL_COMMIT
:
case
LOCAL_COMMIT
:
{
DBUG_ASSERT
(
thd
->
wsrep_trx_meta
.
gtid
.
seqno
!=
WSREP_SEQNO_UNDEFINED
);
if
(
wsrep
->
post_commit
(
wsrep
,
&
thd
->
wsrep_ws_handle
))
if
(
wsrep
&&
wsrep
->
post_commit
(
wsrep
,
&
thd
->
wsrep_ws_handle
))
{
DBUG_PRINT
(
"wsrep"
,
(
"set committed fail"
));
WSREP_WARN
(
"set committed fail: %llu %d"
,
...
...
@@ -115,29 +115,29 @@ void wsrep_post_commit(THD* thd, bool all)
wsrep_cleanup_transaction
(
thd
);
break
;
}
case
LOCAL_STATE
:
{
/* non-InnoDB statements may have populated events in stmt cache
=> cleanup
*/
WSREP_DEBUG
(
"cleanup transaction for LOCAL_STATE"
);
/*
Run post-rollback hook to clean up in the case if
some keys were populated for the transaction in provider
but during commit time there was no write set to replicate.
This may happen when client sets the SAVEPOINT and immediately
rolls back to savepoint after first operation.
case
LOCAL_STATE
:
{
/* non-InnoDB statements may have populated events in stmt cache
=> cleanup
*/
WSREP_DEBUG
(
"cleanup transaction for LOCAL_STATE"
);
/*
Run post-rollback hook to clean up in the case if
some keys were populated for the transaction in provider
but during commit time there was no write set to replicate.
This may happen when client sets the SAVEPOINT and immediately
rolls back to savepoint after first operation.
*/
if
(
all
&&
thd
->
wsrep_conflict_state
!=
MUST_REPLAY
&&
wsrep
->
post_rollback
(
wsrep
,
&
thd
->
wsrep_ws_handle
))
{
WSREP_WARN
(
"post_rollback fail: %llu %d"
,
(
long
long
)
thd
->
thread_id
,
thd
->
stmt_da
->
status
());
}
wsrep_cleanup_transaction
(
thd
);
break
;
}
default:
break
;
if
(
all
&&
thd
->
wsrep_conflict_state
!=
MUST_REPLAY
&&
wsrep
&&
wsrep
->
post_rollback
(
wsrep
,
&
thd
->
wsrep_ws_handle
))
{
WSREP_WARN
(
"post_rollback fail: %llu %d"
,
(
long
long
)
thd
->
thread_id
,
thd
->
stmt_da
->
status
());
}
wsrep_cleanup_transaction
(
thd
);
break
;
}
default:
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