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