~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_rli.cc

  • Committer: Brian Aker
  • Date: 2008-10-06 20:34:36 UTC
  • Revision ID: brian@tangent.org-20081006203436-4yqpjjgw9kdvq9b4
No need for charsets in replication code (we only have one now).

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
  until_log_name[0]= ign_master_log_name_end[0]= 0;
52
52
  memset(&info_file, 0, sizeof(info_file));
53
53
  memset(&cache_buf, 0, sizeof(cache_buf));
54
 
  cached_charset_invalidate();
55
54
  pthread_mutex_init(&run_lock, MY_MUTEX_INIT_FAST);
56
55
  pthread_mutex_init(&data_lock, MY_MUTEX_INIT_FAST);
57
56
  pthread_mutex_init(&log_space_lock, MY_MUTEX_INIT_FAST);
979
978
}
980
979
 
981
980
 
982
 
void Relay_log_info::cached_charset_invalidate()
983
 
{
984
 
  /* Full of zeroes means uninitialized. */
985
 
  memset(cached_charset, 0, sizeof(cached_charset));
986
 
  return;
987
 
}
988
 
 
989
 
 
990
 
bool Relay_log_info::cached_charset_compare(char *charset) const
991
 
{
992
 
  if (memcmp(cached_charset, charset, sizeof(cached_charset)))
993
 
  {
994
 
    memcpy(const_cast<char*>(cached_charset), charset, sizeof(cached_charset));
995
 
    return(1);
996
 
  }
997
 
  return(0);
998
 
}
999
 
 
1000
 
 
1001
981
void Relay_log_info::stmt_done(my_off_t event_master_log_pos,
1002
982
                                  time_t event_creation_time)
1003
983
{