Commit fffe4e97 authored by andrey@example.com's avatar andrey@example.com

Minor change - fixed function documentation and added

const for two parameters.
parent 089b284c
...@@ -253,6 +253,7 @@ mysql_event_fill_row(THD *thd, TABLE *table, Event_parse_data *et, ...@@ -253,6 +253,7 @@ mysql_event_fill_row(THD *thd, TABLE *table, Event_parse_data *et,
thd Thread thd Thread
schema_table The I_S.EVENTS table schema_table The I_S.EVENTS table
event_table The event table to use for loading (mysql.event) event_table The event table to use for loading (mysql.event)
db For which schema to do an index scan.
RETURN VALUE RETURN VALUE
0 OK 0 OK
...@@ -261,7 +262,8 @@ mysql_event_fill_row(THD *thd, TABLE *table, Event_parse_data *et, ...@@ -261,7 +262,8 @@ mysql_event_fill_row(THD *thd, TABLE *table, Event_parse_data *et,
bool bool
Event_db_repository::index_read_for_db_for_i_s(THD *thd, TABLE *schema_table, Event_db_repository::index_read_for_db_for_i_s(THD *thd, TABLE *schema_table,
TABLE *event_table, char *db) TABLE *event_table,
const char *db)
{ {
int ret=0; int ret=0;
CHARSET_INFO *scs= system_charset_info; CHARSET_INFO *scs= system_charset_info;
...@@ -369,7 +371,8 @@ Event_db_repository::table_scan_all_for_i_s(THD *thd, TABLE *schema_table, ...@@ -369,7 +371,8 @@ Event_db_repository::table_scan_all_for_i_s(THD *thd, TABLE *schema_table,
*/ */
int int
Event_db_repository::fill_schema_events(THD *thd, TABLE_LIST *tables, char *db) Event_db_repository::fill_schema_events(THD *thd, TABLE_LIST *tables,
const char *db)
{ {
TABLE *schema_table= tables->table; TABLE *schema_table= tables->table;
TABLE *event_table= NULL; TABLE *event_table= NULL;
......
...@@ -80,7 +80,7 @@ class Event_db_repository ...@@ -80,7 +80,7 @@ class Event_db_repository
open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table); open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table);
int int
fill_schema_events(THD *thd, TABLE_LIST *tables, char *db); fill_schema_events(THD *thd, TABLE_LIST *tables, const char *db);
private: private:
void void
...@@ -88,7 +88,7 @@ class Event_db_repository ...@@ -88,7 +88,7 @@ class Event_db_repository
LEX_STRING field_value); LEX_STRING field_value);
bool bool
index_read_for_db_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table, index_read_for_db_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table,
char *db); const char *db);
bool bool
table_scan_all_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table); table_scan_all_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table);
......
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