[Commits] Rev 3458: MDEV-26: Global transaction ID. in http://bazaar.launchpad.net/~maria-captains/maria/10.0

knielsen at knielsen-hq.org knielsen at knielsen-hq.org
Thu Feb 21 15:46:11 EET 2013


At http://bazaar.launchpad.net/~maria-captains/maria/10.0

------------------------------------------------------------
revno: 3458
revision-id: knielsen at knielsen-hq.org-20130221134611-mjq3epyjvk62tue3
parent: knielsen at knielsen-hq.org-20130221071055-4bv9kkwa5y19dg8e
committer: knielsen at knielsen-hq.org
branch nick: work-10.0-mdev26
timestamp: Thu 2013-02-21 14:46:11 +0100
message:
  MDEV-26: Global transaction ID.
  
  Fix crash in binlog_gtid_pos('', 4) (and thus slave connect) when master does not
  have binlog enabled.
=== modified file 'sql/sql_repl.cc'
--- a/sql/sql_repl.cc	2013-02-19 13:22:29 +0000
+++ b/sql/sql_repl.cc	2013-02-21 13:46:11 +0000
@@ -965,6 +965,12 @@ gtid_state_from_binlog_pos(const char *i
   char name_buf[FN_REFLEN];
   LOG_INFO linfo;
 
+  if (!mysql_bin_log.is_open())
+  {
+    my_error(ER_NO_BINARY_LOGGING, MYF(0));
+    return 1;
+  }
+
   if (in_name && in_name[0])
   {
     mysql_bin_log.make_log_name(name_buf, in_name);



More information about the commits mailing list