~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/log_event.cc

  • Committer: Brian Aker
  • Date: 2008-07-13 22:21:51 UTC
  • Revision ID: brian@tangent.org-20080713222151-fv2tcpbsc829j2oc
Ulonglong to uint64_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
723
723
 
724
724
  protocol->prepare_for_resend();
725
725
  protocol->store(log_name, &my_charset_bin);
726
 
  protocol->store((ulonglong) pos);
 
726
  protocol->store((uint64_t) pos);
727
727
  event_type = get_type_str();
728
728
  protocol->store(event_type, strlen(event_type), &my_charset_bin);
729
729
  protocol->store((uint32) server_id);
730
 
  protocol->store((ulonglong) log_pos);
 
730
  protocol->store((uint64_t) log_pos);
731
731
  pack_info(protocol);
732
732
  return protocol->write();
733
733
}
1488
1488
  if (sql_mode_inited)
1489
1489
  {
1490
1490
    *start++= Q_SQL_MODE_CODE;
1491
 
    int8store(start, (ulonglong)sql_mode);
 
1491
    int8store(start, (uint64_t)sql_mode);
1492
1492
    start+= 8;
1493
1493
  }
1494
1494
  if (catalog_len) // i.e. this var is inited (false for 4.0 events)
1840
1840
    {
1841
1841
      CHECK_SPACE(pos, end, 8);
1842
1842
      sql_mode_inited= 1;
1843
 
      sql_mode= (ulong) uint8korr(pos); // QQ: Fix when sql_mode is ulonglong
 
1843
      sql_mode= (ulong) uint8korr(pos); // QQ: Fix when sql_mode is uint64_t
1844
1844
      pos+= 8;
1845
1845
      break;
1846
1846
    }
3825
3825
 
3826
3826
#ifndef MYSQL_CLIENT
3827
3827
Rotate_log_event::Rotate_log_event(const char* new_log_ident_arg,
3828
 
                                   uint ident_len_arg, ulonglong pos_arg,
 
3828
                                   uint ident_len_arg, uint64_t pos_arg,
3829
3829
                                   uint flags_arg)
3830
3830
  :Log_event(), new_log_ident(new_log_ident_arg),
3831
3831
   pos(pos_arg),ident_len(ident_len_arg ? ident_len_arg :
4224
4224
/**
4225
4225
  @note
4226
4226
  It's ok not to use int8store here,
4227
 
  as long as xid_t::set(ulonglong) and
 
4227
  as long as xid_t::set(uint64_t) and
4228
4228
  xid_t::get_my_xid doesn't do it either.
4229
4229
  We don't care about actual values of xids as long as
4230
4230
  identical numbers compare identically
6621
6621
{
6622
6622
  uchar buf[ROWS_HEADER_LEN];   // No need to init the buffer
6623
6623
  assert(m_table_id != ~0UL);
6624
 
  int6store(buf + RW_MAPID_OFFSET, (ulonglong)m_table_id);
 
6624
  int6store(buf + RW_MAPID_OFFSET, (uint64_t)m_table_id);
6625
6625
  int2store(buf + RW_FLAGS_OFFSET, m_flags);
6626
6626
  return (my_b_safe_write(file, buf, ROWS_HEADER_LEN));
6627
6627
}
7123
7123
{
7124
7124
  assert(m_table_id != ~0UL);
7125
7125
  uchar buf[TABLE_MAP_HEADER_LEN];
7126
 
  int6store(buf + TM_MAPID_OFFSET, (ulonglong)m_table_id);
 
7126
  int6store(buf + TM_MAPID_OFFSET, (uint64_t)m_table_id);
7127
7127
  int2store(buf + TM_FLAGS_OFFSET, m_flags);
7128
7128
  return (my_b_safe_write(file, buf, TABLE_MAP_HEADER_LEN));
7129
7129
}