1 /* Copyright (C) 2015 Codership Oy <info@codership.com> 2 3 This program is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License as published by 5 the Free Software Foundation; version 2 of the License. 6 7 This program is distributed in the hope that it will be useful, 8 but WITHOUT ANY WARRANTY; without even the implied warranty of 9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 GNU General Public License for more details. 11 12 You should have received a copy of the GNU General Public License along 13 with this program; if not, write to the Free Software Foundation, Inc., 14 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA. */ 15 16 #ifndef WSREP_XID_H 17 #define WSREP_XID_H 18 19 #include <my_config.h> 20 21 #ifdef WITH_WSREP 22 23 #include "wsrep_mysqld.h" 24 #include "wsrep/gtid.hpp" 25 #include "handler.h" // XID typedef 26 27 void wsrep_xid_init(xid_t*, const wsrep::gtid&, const wsrep_server_gtid_t&); 28 const wsrep::id& wsrep_xid_uuid(const XID&); 29 wsrep::seqno wsrep_xid_seqno(const XID&); 30 31 template<typename T> T wsrep_get_SE_checkpoint(); 32 bool wsrep_set_SE_checkpoint(const wsrep::gtid& gtid, const wsrep_server_gtid_t&); 33 //void wsrep_get_SE_checkpoint(XID&); /* uncomment if needed */ 34 //void wsrep_set_SE_checkpoint(XID&); /* uncomment if needed */ 35 36 void wsrep_sort_xid_array(XID *array, int len); 37 38 #endif /* WITH_WSREP */ 39 #endif /* WSREP_UTILS_H */ 40