Commit d5d87c98 authored by Kristian Nielsen's avatar Kristian Nielsen

Fix embedded server build after MDEV-7818 patch

parent ba025501
......@@ -4284,6 +4284,7 @@ case SQLCOM_PREPARE:
break;
}
#ifdef HAVE_REPLICATION
if (lex->type & REFRESH_READ_LOCK)
{
/*
......@@ -4295,6 +4296,7 @@ case SQLCOM_PREPARE:
if (rpl_pause_for_ftwrl(thd))
goto error;
}
#endif
/*
reload_acl_and_cache() will tell us if we are allowed to write to the
binlog or not.
......@@ -4325,8 +4327,10 @@ case SQLCOM_PREPARE:
if (!res)
my_ok(thd);
}
#ifdef HAVE_REPLICATION
if (lex->type & REFRESH_READ_LOCK)
rpl_unpause_after_ftwrl(thd);
#endif
break;
}
......
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