From 5836191c8f0658d5d75484766fdcc3d838b0a5c1 Mon Sep 17 00:00:00 2001 From: Vlad Lesin Date: Fri, 3 Apr 2020 00:43:09 +0300 Subject: MDEV-21168: Active XA transactions stop slave from working after backup was restored. Optionally rollback prepared XA's on "mariabackup --prepare". The fix MUST NOT be ported on 10.5+, as MDEV-742 fix solves the issue for slaves. --- sql/handler.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sql/handler.h') diff --git a/sql/handler.h b/sql/handler.h index a51d5dae01a..a0a43daf144 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -4387,4 +4387,16 @@ void print_keydup_error(TABLE *table, KEY *key, myf errflag); int del_global_index_stat(THD *thd, TABLE* table, KEY* key_info); int del_global_table_stat(THD *thd, LEX_STRING *db, LEX_STRING *table); +#ifndef DBUG_OFF +/** Converts XID to string. + +@param[out] buf output buffer +@param[in] xid XID to convert + +@return pointer to converted string + +@note This does not need to be multi-byte safe or anything */ +char *xid_to_str(char *buf, const XID &xid); +#endif // !DBUG_OFF + #endif /* HANDLER_INCLUDED */ -- cgit v1.2.1