Commit cb46c333 authored by unknown's avatar unknown

MDEV-26: Global transaction ID.

Fix crash in binlog_gtid_pos('', 4) (and thus slave connect) when master does not
have binlog enabled.
parent c350177a
......@@ -965,6 +965,12 @@ gtid_state_from_binlog_pos(const char *in_name, uint32 pos, String *out_str)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment