Commit 231c02f7 authored by Jan Lindström's avatar Jan Lindström

MariaDB adjustments.

parent c2c61bbc
...@@ -53,7 +53,7 @@ my $cwd = cwd(); ...@@ -53,7 +53,7 @@ my $cwd = cwd();
my $basedir; my $basedir;
my $socket = '/tmp/mysql.sock'; my $socket = '/tmp/mysql.sock';
my $version = '5.5.59'; my $version = '5.5.60';
sub which sub which
{ {
......
...@@ -103,10 +103,10 @@ void wsrep_post_commit(THD* thd, bool all) ...@@ -103,10 +103,10 @@ void wsrep_post_commit(THD* thd, bool all)
switch (thd->wsrep_exec_mode) switch (thd->wsrep_exec_mode)
{ {
case LOCAL_COMMIT: case LOCAL_COMMIT:
{ {
DBUG_ASSERT(thd->wsrep_trx_meta.gtid.seqno != WSREP_SEQNO_UNDEFINED); 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")); DBUG_PRINT("wsrep", ("set committed fail"));
WSREP_WARN("set committed fail: %llu %d", WSREP_WARN("set committed fail: %llu %d",
...@@ -115,29 +115,29 @@ void wsrep_post_commit(THD* thd, bool all) ...@@ -115,29 +115,29 @@ void wsrep_post_commit(THD* thd, bool all)
wsrep_cleanup_transaction(thd); wsrep_cleanup_transaction(thd);
break; break;
} }
case LOCAL_STATE: case LOCAL_STATE:
{ {
/* non-InnoDB statements may have populated events in stmt cache /* non-InnoDB statements may have populated events in stmt cache
=> cleanup => cleanup
*/ */
WSREP_DEBUG("cleanup transaction for LOCAL_STATE"); WSREP_DEBUG("cleanup transaction for LOCAL_STATE");
/* /*
Run post-rollback hook to clean up in the case if Run post-rollback hook to clean up in the case if
some keys were populated for the transaction in provider some keys were populated for the transaction in provider
but during commit time there was no write set to replicate. but during commit time there was no write set to replicate.
This may happen when client sets the SAVEPOINT and immediately This may happen when client sets the SAVEPOINT and immediately
rolls back to savepoint after first operation. rolls back to savepoint after first operation.
*/ */
if (all && thd->wsrep_conflict_state != MUST_REPLAY && if (all && thd->wsrep_conflict_state != MUST_REPLAY &&
wsrep->post_rollback(wsrep, &thd->wsrep_ws_handle)) wsrep && wsrep->post_rollback(wsrep, &thd->wsrep_ws_handle))
{ {
WSREP_WARN("post_rollback fail: %llu %d", WSREP_WARN("post_rollback fail: %llu %d",
(long long)thd->thread_id, thd->stmt_da->status()); (long long)thd->thread_id, thd->stmt_da->status());
} }
wsrep_cleanup_transaction(thd); wsrep_cleanup_transaction(thd);
break; break;
} }
default: break; default: break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment