#include "commands.h"#include <my_global.h>#include <m_ctype.h>#include <mysql.h>#include <my_dir.h>#include "buffer.h"#include "guardian.h"#include "instance_map.h"#include "log.h"#include "manager.h"#include "messages.h"#include "mysqld_error.h"#include "mysql_manager_error.h"#include "options.h"#include "priv.h"#include "protocol.h"Include dependency graph for commands.cc:

Go to the source code of this file.
Classes | |
| class | Instance_options_list |
Functions | |
| static int | put_to_buff (Buffer *buff, const char *str, uint *position) |
| static int | parse_version_number (const char *version_str, char *version, uint version_size) |
| static C_MODE_START byte * | get_item_key (const byte *item, uint *len, my_bool __attribute__((unused)) t) |
| static void | delete_item (void *item) |
Variables | |
| static const int | modify_defaults_to_im_error [] |
| static void delete_item | ( | void * | item | ) | [static] |
Definition at line 1207 of file commands.cc.
Referenced by Abstract_option_cmd::init().
01208 { 01209 delete (Instance_options_list *) item; 01210 }
Here is the caller graph for this function:

| static C_MODE_START byte* get_item_key | ( | const byte * | item, | |
| uint * | len, | |||
| my_bool __attribute__((unused)) | t | |||
| ) | [static] |
Definition at line 1199 of file commands.cc.
References Instance_options_list::get_instance_name(), LEX_STRING::length, and LEX_STRING::str.
Referenced by Abstract_option_cmd::init().
01201 { 01202 const Instance_options_list *lst= (const Instance_options_list *) item; 01203 *len= lst->get_instance_name()->length; 01204 return (byte *) lst->get_instance_name()->str; 01205 }
Here is the call graph for this function:

Here is the caller graph for this function:

| static int parse_version_number | ( | const char * | version_str, | |
| char * | version, | |||
| uint | version_size | |||
| ) | [static] |
Definition at line 82 of file commands.cc.
References default_charset_info, my_isdigit, and start().
Referenced by Show_instance_status::write_data().
00084 { 00085 const char *start= version_str; 00086 const char *end; 00087 00088 // skip garbage 00089 while (!my_isdigit(default_charset_info, *start)) 00090 start++; 00091 00092 end= start; 00093 // skip digits and dots 00094 while (my_isdigit(default_charset_info, *end) || *end == '.') 00095 end++; 00096 00097 if ((uint)(end - start) >= version_size) 00098 return -1; 00099 00100 strncpy(version, start, end-start); 00101 version[end-start]= '\0'; 00102 00103 return 0; 00104 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 71 of file commands.cc.
References Buffer::append(), and strlen().
00072 { 00073 uint len= strlen(str); 00074 if (buff->append(*position, str, len)) 00075 return 1; 00076 00077 *position+= len; 00078 return 0; 00079 }
Here is the call graph for this function:

const int modify_defaults_to_im_error[] [static] |
Initial value:
Definition at line 46 of file commands.cc.
Referenced by Abstract_option_cmd::correct_file(), and Drop_instance::execute_impl().
1.4.7

