~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.cc

  • Committer: Brian Aker
  • Date: 2008-12-16 22:12:53 UTC
  • Revision ID: brian@tangent.org-20081216221253-9tgzl02m1z2sifpq
Removed low_priority (aka.. lets keep the execution clean and free of
MyISAM's)

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
static bool set_option_autocommit(Session *session, set_var *var);
109
109
static int  check_log_update(Session *session, set_var *var);
110
110
static int  check_pseudo_thread_id(Session *session, set_var *var);
111
 
static void fix_low_priority_updates(Session *session, enum_var_type type);
112
111
static int check_tx_isolation(Session *session, set_var *var);
113
112
static void fix_tx_isolation(Session *session, enum_var_type type);
114
113
static int check_completion_type(Session *session, set_var *var);
208
207
                                                                    param_age_threshold));
209
208
static sys_var_bool_ptr sys_local_infile(&vars, "local_infile",
210
209
                                         &opt_local_infile);
211
 
static sys_var_session_bool     sys_low_priority_updates(&vars, "low_priority_updates",
212
 
                                                     &SV::low_priority_updates,
213
 
                                                     fix_low_priority_updates);
214
 
#ifndef TO_BE_DELETED   /* Alias for the low_priority_updates */
215
 
static sys_var_session_bool     sys_sql_low_priority_updates(&vars, "sql_low_priority_updates",
216
 
                                                         &SV::low_priority_updates,
217
 
                                                         fix_low_priority_updates);
218
 
#endif
219
210
static sys_var_session_uint32_t sys_max_allowed_packet(&vars, "max_allowed_packet",
220
211
                                                       &SV::max_allowed_packet);
221
212
static sys_var_long_ptr sys_max_binlog_cache_size(&vars, "max_binlog_cache_size",
604
595
}
605
596
 
606
597
 
607
 
/**
608
 
  If one sets the LOW_PRIORIY UPDATES flag, we also must change the
609
 
  used lock type.
610
 
*/
611
 
 
612
 
static void fix_low_priority_updates(Session *session, enum_var_type type)
613
 
{
614
 
  if (type == OPT_GLOBAL)
615
 
    thr_upgraded_concurrent_insert_lock=
616
 
      (global_system_variables.low_priority_updates ?
617
 
       TL_WRITE_LOW_PRIORITY : TL_WRITE);
618
 
  else
619
 
    session->update_lock_default= (session->variables.low_priority_updates ?
620
 
                               TL_WRITE_LOW_PRIORITY : TL_WRITE);
621
 
}
622
 
 
623
 
 
624
598
static void
625
599
fix_myisam_max_sort_file_size(Session *, enum_var_type)
626
600
{