• unknown's avatar
    A previous changeset by me today about SQL_LOG_BIN had the problem · ec4a9dc9
    unknown authored
    that it tested the privilege in ::update() whereas it should be
    in ::check() (see email from Serg, subject
    "Re: bk commit - 4.1 tree (guilhem:1.1706)").
    So I add instead a check_func function to sys_var_thd_bit.
    I do the same addition to sys_var_thd_ulong, to unify handling
    of PSEUDO_THREAD_ID with the one of SQL_LOG_BIN. So class
    sys_var_pseudo_thread_id is not needed anymore, removing it.
    
    
    mysql-test/r/rpl_temporary.result:
      result update
    mysql-test/t/rpl_temporary.test:
      tests after new way of fixing; verify that when second variable
      assignment is refused then first is not done.
    sql/set_var.cc:
      a check_func (check_log_update) when setting SQL_LOG_BIN,
      and one when setting PSEUDO_THREAD_ID.
      Removing class sys_var_pseudo_thread_id.
      Updates for new prototypes of constructor in sys_var_thd_bit
      and sys_var_thd_ulong.
    sql/set_var.h:
      Adding check_func to sys_var_thd_bit.
      Adding check_func to sys_var_thd_ulong, so class sys_var_pseudo_thread_id
      is not needed anymore, removing it.
    ec4a9dc9
set_var.cc 87.7 KB