summaryrefslogtreecommitdiff
path: root/sql/events.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-09-28 09:13:05 +0200
committerSergei Golubchik <serg@mariadb.org>2014-10-01 23:48:35 +0200
commit425dc6d2fd80531d553e25790f6a6e7e199445f6 (patch)
treea6f7937d1c4211943c895d6092f19228b5aef2ca /sql/events.cc
parent7aabc2ded2b63fed1e149276bfb5f8e0fd7d723f (diff)
downloadmariadb-git-425dc6d2fd80531d553e25790f6a6e7e199445f6.tar.gz
small cleanup
Diffstat (limited to 'sql/events.cc')
-rw-r--r--sql/events.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/sql/events.cc b/sql/events.cc
index 999df79a4c0..fa40086c1f7 100644
--- a/sql/events.cc
+++ b/sql/events.cc
@@ -1202,33 +1202,6 @@ int wsrep_create_event_query(THD *thd, uchar** buf, size_t* buf_len)
}
return wsrep_to_buf_helper(thd, log_query.ptr(), log_query.length(), buf, buf_len);
}
-static int
-wsrep_alter_query_string(THD *thd, String *buf)
-{
- /* Append the "ALTER" part of the query */
- if (buf->append(STRING_WITH_LEN("ALTER ")))
- return 1;
- /* Append definer */
- append_definer(thd, buf, &(thd->lex->definer->user), &(thd->lex->definer->host));
- /* Append the left part of thd->query after event name part */
- if (buf->append(thd->lex->stmt_definition_begin,
- thd->lex->stmt_definition_end -
- thd->lex->stmt_definition_begin))
- return 1;
-
- return 0;
-}
-int wsrep_alter_event_query(THD *thd, uchar** buf, size_t* buf_len)
-{
- String log_query;
-
- if (wsrep_alter_query_string(thd, &log_query))
- {
- WSREP_WARN("events alter string failed: %s", thd->query());
- return 1;
- }
- return wsrep_to_buf_helper(thd, log_query.ptr(), log_query.length(), buf, buf_len);
-}
#endif /* WITH_WSREP */
/**
@} (End of group Event_Scheduler)