From a64991df9d86c57a597e012cbf04accb7a49defe Mon Sep 17 00:00:00 2001 From: Brandon Nesterenko Date: Sun, 30 Jan 2022 15:32:56 -0700 Subject: MDEV-4989: Support for GTID in mysqlbinlog This patch fixes two issues: First, it fixes test failure due to GTID List events having inconsistent ordering of domain ids. In particular, this patch ensures that a GTID list log event will have its GTIDs ordered by domain id (ascending) followed by sequence number (ascending). Second, it fixes an assert which could use an unintialized variable. Reviewed By: ============ Andrei Elkin --- sql/log_event.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sql/log_event.h') diff --git a/sql/log_event.h b/sql/log_event.h index db80ca841a2..405b9a15003 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -5902,4 +5902,10 @@ int row_log_event_uncompress(const Format_description_log_event bool is_parallel_retry_error(rpl_group_info *rgi, int err); +/* + Compares two GTIDs to facilitate sorting a GTID list log event by domain id + (ascending) and sequence number (ascending) +*/ +int compare_glle_gtids(const void * _gtid1, const void *_gtid2); + #endif /* _log_event_h */ -- cgit v1.2.1