~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/records.cc

  • Committer: Brian Aker
  • Date: 2008-08-11 17:10:04 UTC
  • Revision ID: brian@tangent.org-20080811171004-hpm35egbyuriufm1
ulongĀ conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
513
513
static int rr_from_cache(READ_RECORD *info)
514
514
{
515
515
  register uint i;
516
 
  ulong length;
 
516
  uint32_t length;
517
517
  my_off_t rest_of_file;
518
518
  int16_t error;
519
519
  uchar *position,*ref_position,*record_pos;
520
 
  ulong record;
 
520
  uint32_t record;
521
521
 
522
522
  for (;;)
523
523
  {
541
541
    length=info->rec_cache_size;
542
542
    rest_of_file=info->io_cache->end_of_file - my_b_tell(info->io_cache);
543
543
    if ((my_off_t) length > rest_of_file)
544
 
      length= (ulong) rest_of_file;
 
544
      length= (uint32_t) rest_of_file;
545
545
    if (!length || my_b_read(info->io_cache,info->cache,length))
546
546
    {
547
547
      return -1;                        /* End of file */