~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_update.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
int mi_update(register MI_INFO *info, const unsigned char *oldrec, unsigned char *newrec)
24
24
{
25
 
  int flag,key_changed,save_errno;
 
25
  int key_changed,save_errno;
26
26
  register internal::my_off_t pos;
27
27
  uint32_t i;
28
28
  unsigned char old_key[MI_MAX_KEY_BUFF],*new_key;
29
29
  bool auto_key_changed=0;
30
30
  uint64_t changed;
31
31
  MYISAM_SHARE *share= info->s;
32
 
  internal::ha_checksum old_checksum= 0;
 
32
  ha_checksum old_checksum= 0;
33
33
 
34
34
  if (!(info->update & HA_STATE_AKTIV))
35
35
  {
167
167
      errno == HA_ERR_RECORD_FILE_FULL)
168
168
  {
169
169
    info->errkey= (int) i;
170
 
    flag=0;
 
170
    int flag=0;
171
171
    do
172
172
    {
173
173
      if (((uint64_t) 1 << i) & changed)