~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
extern struct system_variables max_system_variables;
57
57
extern size_t table_def_size;
58
58
 
59
 
extern char *drizzle_tmpdir;
 
59
extern std::string drizzle_tmpdir;
60
60
extern const char *first_keyword;
61
61
extern const char *in_left_expr_name;
62
62
extern const char *in_additional_cond;
68
68
extern char system_time_zone[30];
69
69
extern char *opt_tc_log_file;
70
70
extern uint64_t session_startup_options;
 
71
extern time_t server_start_time;
 
72
extern time_t flush_status_time;
71
73
extern uint32_t global_thread_id;
72
 
extern uint64_t aborted_threads;
73
 
extern uint64_t aborted_connects;
74
74
extern uint64_t table_cache_size;
75
75
extern uint64_t max_connect_errors;
76
76
extern uint32_t back_log;
83
83
extern bool opt_readonly;
84
84
extern char* opt_secure_file_priv;
85
85
extern char *default_tz_name;
 
86
extern const char *opt_scheduler;
86
87
 
87
 
uint64_t fix_unsigned(Session *, uint64_t, const struct my_option *);
 
88
uint64_t fix_unsigned(Session *, uint64_t, const struct option *);
88
89
 
89
90
struct sys_var_chain
90
91
{
101
102
protected:
102
103
  const std::string name; /**< The name of the variable */
103
104
  sys_after_update_func after_update; /**< Function pointer triggered after the variable's value is updated */
104
 
  struct my_option *option_limits; /**< Updated by by set_var_init() */
 
105
  struct option *option_limits; /**< Updated by by set_var_init() */
105
106
  bool m_allow_empty_value; /**< Does variable allow an empty value? */
106
107
  sys_var *next;
107
108
public:
159
160
  /**
160
161
   * Returns a pointer to the variable's option limits
161
162
   */
162
 
  inline struct my_option *getOptionLimits() const
 
163
  inline struct option *getOptionLimits() const
163
164
  {
164
165
    return option_limits;
165
166
  }
166
167
  /**
167
168
   * Sets the pointer to the variable's option limits
168
169
   *
169
 
   * @param Pointer to the option limits my_option variable
 
170
   * @param Pointer to the option limits option variable
170
171
   */
171
 
  inline void setOptionLimits(struct my_option *in_option_limits)
 
172
  inline void setOptionLimits(struct option *in_option_limits)
172
173
  {
173
174
    option_limits= in_option_limits;
174
175
  }
916
917
drizzle_show_var* enumerate_sys_vars(Session *session, bool sorted);
917
918
void drizzle_add_plugin_sysvar(sys_var_pluginvar *var);
918
919
void drizzle_del_plugin_sysvar();
919
 
int mysql_add_sys_var_chain(sys_var *chain, struct my_option *long_options);
 
920
int mysql_add_sys_var_chain(sys_var *chain, struct option *long_options);
920
921
int mysql_del_sys_var_chain(sys_var *chain);
921
922
sys_var *find_sys_var(Session *session, const char *str, uint32_t length=0);
922
923
int sql_set_variables(Session *session, List<set_var_base> *var_list);