~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_cache.c

  • Committer: Brian Aker
  • Date: 2008-07-29 07:47:38 UTC
  • mfrom: (212.6.1 bzero-memset)
  • Revision ID: brian@tangent.org-20080729074738-lfzim6htapm42f2o
MergeĀ fromĀ Mats

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
  expected to hit the cache again.
27
27
 
28
28
  Allows "partial read" errors in the record header (when READING_HEADER flag
29
 
  is set) - unread part is bzero'ed
 
29
  is set) - unread part is zero'ed
30
30
 
31
31
  Note: out-of-cache reads are enabled for shared IO_CACHE's too,
32
32
  as these reads will be cached by OS cache (and my_pread is always atomic)
97
97
      my_errno=HA_ERR_WRONG_IN_RECORD;
98
98
    return(1);
99
99
  }
100
 
  bzero(buff+read_length,MI_BLOCK_INFO_HEADER_LENGTH - in_buff_length -
101
 
        read_length);
 
100
  memset(buff+read_length, 0,
 
101
         MI_BLOCK_INFO_HEADER_LENGTH - in_buff_length - read_length);
102
102
  return(0);
103
103
} /* _mi_read_cache */