1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-21117 post-push to cover a "custom" xid format

Due to wsrep uses its own xid format for its recovery,
the xid hashing has to be refined.
When a xid object is not in the server "mysql" format,
the hash record made to contain the xid also in the full format.
This commit is contained in:
Andrei Elkin
2021-06-16 17:10:11 +03:00
parent da65cb4d97
commit e95f78f475
2 changed files with 32 additions and 15 deletions

View File

@ -956,10 +956,12 @@ struct xid_recovery_member
uint in_engine_prepare; // number of engines that have xid prepared
bool decided_to_commit;
Binlog_offset binlog_coord; // semisync recovery binlog offset
XID *full_xid; // needed by wsrep or past it recovery
xid_recovery_member(my_xid xid_arg, uint prepare_arg, bool decided_arg)
xid_recovery_member(my_xid xid_arg, uint prepare_arg, bool decided_arg,
XID *full_xid_arg)
: xid(xid_arg), in_engine_prepare(prepare_arg),
decided_to_commit(decided_arg) {};
decided_to_commit(decided_arg), full_xid(full_xid_arg) {};
};
/* for recover() handlerton call */