~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_scan.c

  • Committer: Monty Taylor
  • Date: 2008-07-16 19:10:24 UTC
  • mfrom: (51.1.127 remove-dbug)
  • mto: This revision was merged to the branch mainline in revision 176.
  • Revision ID: monty@inaugust.com-20080716191024-prjgoh7fbri7rx26
MergedĀ fromĀ remove-dbug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
int mi_scan_init(register MI_INFO *info)
21
21
{
22
 
  DBUG_ENTER("mi_scan_init");
23
22
  info->nextpos=info->s->pack.header_length;    /* Read first record */
24
23
  info->lastinx= -1;                            /* Can't forward or backward */
25
24
  if (info->opt_flag & WRITE_CACHE_USED && flush_io_cache(&info->rec_cache))
26
 
    DBUG_RETURN(my_errno);
27
 
  DBUG_RETURN(0);
 
25
    return(my_errno);
 
26
  return(0);
28
27
}
29
28
 
30
29
/*
38
37
 
39
38
int mi_scan(MI_INFO *info, uchar *buf)
40
39
{
41
 
  DBUG_ENTER("mi_scan");
42
40
  /* Init all but update-flag */
43
41
  info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
44
 
  DBUG_RETURN ((*info->s->read_rnd)(info,buf,info->nextpos,1));
 
42
  return((*info->s->read_rnd)(info,buf,info->nextpos,1));
45
43
}