summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorBrandon Nesterenko <brandon.nesterenko@mariadb.com>2022-01-30 15:32:56 -0700
committerBrandon Nesterenko <brandon.nesterenko@mariadb.com>2022-01-31 09:30:23 -0700
commita64991df9d86c57a597e012cbf04accb7a49defe (patch)
treebcc40bd86e808d6d21df2e4d8e79d0154009ea6b /sql/log_event.h
parent0c5d1342ae6b5ab3256848be7a83e5c3b1f21566 (diff)
downloadmariadb-git-a64991df9d86c57a597e012cbf04accb7a49defe.tar.gz
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 <andrei.elkin@mariadb.com>
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h6
1 files changed, 6 insertions, 0 deletions
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 */