~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_rli.cc

  • Committer: Brian Aker
  • Date: 2008-08-05 04:10:42 UTC
  • mfrom: (261.2.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: brian@tangent.org-20080805041042-1l4893r3bwy2lxz2
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  group_relay_log_name[0]= event_relay_log_name[0]=
48
48
    group_master_log_name[0]= 0;
49
49
  until_log_name[0]= ign_master_log_name_end[0]= 0;
50
 
  memset((char*) &info_file, 0, sizeof(info_file));
51
 
  memset((char*) &cache_buf, 0, sizeof(cache_buf));
 
50
  memset(&info_file, 0, sizeof(info_file));
 
51
  memset(&cache_buf, 0, sizeof(cache_buf));
52
52
  cached_charset_invalidate();
53
53
  pthread_mutex_init(&run_lock, MY_MUTEX_INIT_FAST);
54
54
  pthread_mutex_init(&data_lock, MY_MUTEX_INIT_FAST);
984
984
 
985
985
bool Relay_log_info::cached_charset_compare(char *charset) const
986
986
{
987
 
  if (memcmp((uchar*) cached_charset, (uchar*) charset,
988
 
             sizeof(cached_charset)))
 
987
  if (memcmp(cached_charset, charset, sizeof(cached_charset)))
989
988
  {
990
989
    memcpy(const_cast<char*>(cached_charset), charset, sizeof(cached_charset));
991
990
    return(1);