~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_cache.cc

  • Committer: Mark Atwood
  • Date: 2011-04-29 00:19:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2297.
  • Revision ID: me@mark.atwood.name-20110429001938-ps5i74hzcic7dvr3
Merge in Fixes of Brian's IOCACHE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  Allows "partial read" errors in the record header (when READING_HEADER flag
29
29
  is set) - unread part is zero'ed
30
30
 
31
 
  Note: out-of-cache reads are enabled for shared IO_CACHE's too,
 
31
  Note: out-of-cache reads are enabled for shared io_cache_st's too,
32
32
  as these reads will be cached by OS cache (and my_pread is always atomic)
33
33
*/
34
34
 
41
41
using namespace drizzled;
42
42
 
43
43
 
44
 
int _mi_read_cache(internal::IO_CACHE *info, unsigned char *buff, internal::my_off_t pos, uint32_t length,
 
44
int _mi_read_cache(internal::io_cache_st *info, unsigned char *buff, internal::my_off_t pos, uint32_t length,
45
45
                   int flag)
46
46
{
47
47
  uint32_t read_length,in_buff_length;