~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Monty Taylor
  • Date: 2009-08-01 01:53:43 UTC
  • mto: (1106.1.4 memory-fix)
  • mto: This revision was merged to the branch mainline in revision 1107.
  • Revision ID: mordred@inaugust.com-20090801015343-zon3inx2npp8luch
Fixed the plugin string valgrind leak.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
  bool m_allow_empty_value; /**< Does variable allow an empty value? */
73
73
  sys_var *next;
74
74
public:
75
 
  sys_var(const char *name_arg, sys_after_update_func func= NULL)
 
75
  sys_var(const std::string name_arg, sys_after_update_func func= NULL)
76
76
    :
77
77
    name(name_arg),
78
78
    after_update(func),
1072
1072
void set_var_free();
1073
1073
int mysql_append_static_vars(const SHOW_VAR *show_vars, uint32_t count);
1074
1074
SHOW_VAR* enumerate_sys_vars(Session *session, bool sorted);
 
1075
void drizzle_add_plugin_sysvar(sys_var_pluginvar *var);
 
1076
void drizzle_del_plugin_sysvar();
1075
1077
int mysql_add_sys_var_chain(sys_var *chain, struct my_option *long_options);
1076
1078
int mysql_del_sys_var_chain(sys_var *chain);
1077
1079
sys_var *find_sys_var(Session *session, const char *str, uint32_t length=0);