1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
1. factored XID-related functions to a separate wsrep_xid.cc unit.
  2. refactored them to take refrences instead of pointers where appropriate
  3. implemented wsrep_get/set_SE_position to take wsrep_uuid_t and wsrep_seqno_t instead of XID
  4. call wsrep_set_SE_position() in wsrep_sst_received() to reinitialize SE checkpoint after SST was received, avoid assert() in setting code by first checking current position.
This commit is contained in:
Alexey Yurchenko
2015-03-23 23:27:28 +02:00
committed by Nirbhay Choubey
parent f5bce5a600
commit 4ed9ddd30e
16 changed files with 292 additions and 199 deletions

View File

@ -53,6 +53,7 @@
#ifdef WITH_WSREP
#include "wsrep_mysqld.h"
#include "wsrep_xid.h"
#endif
/*
While we have legacy_db_type, we have this array to
@ -1468,7 +1469,7 @@ int ha_commit_trans(THD *thd, bool all)
if (!error && wsrep_is_wsrep_xid(&thd->transaction.xid_state.xid))
{
// xid was rewritten by wsrep
xid= wsrep_xid_seqno(&thd->transaction.xid_state.xid);
xid= wsrep_xid_seqno(thd->transaction.xid_state.xid);
}
#endif // WITH_WSREP
if (!is_real_trans)
@ -1851,7 +1852,7 @@ static my_bool xarecover_handlerton(THD *unused, plugin_ref plugin,
{
#ifdef WITH_WSREP
my_xid x=(wsrep_is_wsrep_xid(&info->list[i]) ?
wsrep_xid_seqno(&info->list[i]) :
wsrep_xid_seqno(info->list[i]) :
info->list[i].get_my_xid());
#else
my_xid x=info->list[i].get_my_xid();