~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/slave.cc

  • Committer: Mats Kindahl
  • Date: 2008-08-25 11:54:47 UTC
  • mto: (489.1.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 372.
  • Revision ID: mats@mysql.com-20080825115447-tg73zkyjnldm7p4c
Hiding THD::proc_info field and providing a setter and getter.
Replacing use of swap_variables() in C++ code with std::swap().
Moving swap_variables() into C files where it is used.
Replacing some function-like macros with inline functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1220
1220
      non-volotile members like mi->io_thd, which is guarded by the mutex.
1221
1221
    */
1222
1222
    pthread_mutex_lock(&mi->run_lock);
1223
 
    protocol->store(mi->io_thd ? mi->io_thd->proc_info : "", &my_charset_bin);
 
1223
    protocol->store(mi->io_thd ? mi->io_thd->get_proc_info() : "", &my_charset_bin);
1224
1224
    pthread_mutex_unlock(&mi->run_lock);
1225
1225
 
1226
1226
    pthread_mutex_lock(&mi->data_lock);
1905
1905
                            const char *messages[SLAVE_RECON_MSG_MAX])
1906
1906
{
1907
1907
  mi->slave_running= MYSQL_SLAVE_RUN_NOT_CONNECT;
1908
 
  thd->proc_info= _(messages[SLAVE_RECON_MSG_WAIT]);
 
1908
  thd->set_proc_info(_(messages[SLAVE_RECON_MSG_WAIT]));
1909
1909
#ifdef SIGNAL_WITH_VIO_CLOSE
1910
1910
  thd->clear_active_vio();
1911
1911
#endif
1920
1920
  if (check_io_slave_killed(thd, mi,
1921
1921
                            _(messages[SLAVE_RECON_MSG_KILLED_WAITING])))
1922
1922
    return 1;
1923
 
  thd->proc_info = _(messages[SLAVE_RECON_MSG_AFTER]);
 
1923
  thd->set_proc_info(_(messages[SLAVE_RECON_MSG_AFTER]));
1924
1924
  if (!suppress_warnings)
1925
1925
  {
1926
1926
    char buf[256], llbuff[22];