~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-02 14:35:48 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702143548-onj30ry0sugr01uw
Removed all references to THREAD.

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");
22
23
  info->nextpos=info->s->pack.header_length;    /* Read first record */
23
24
  info->lastinx= -1;                            /* Can't forward or backward */
24
25
  if (info->opt_flag & WRITE_CACHE_USED && flush_io_cache(&info->rec_cache))
25
 
    return(my_errno);
26
 
  return(0);
 
26
    DBUG_RETURN(my_errno);
 
27
  DBUG_RETURN(0);
27
28
}
28
29
 
29
30
/*
35
36
           HA_ERR_END_OF_FILE = EOF.
36
37
*/
37
38
 
38
 
int mi_scan(MI_INFO *info, unsigned char *buf)
 
39
int mi_scan(MI_INFO *info, uchar *buf)
39
40
{
 
41
  DBUG_ENTER("mi_scan");
40
42
  /* Init all but update-flag */
41
43
  info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
42
 
  return((*info->s->read_rnd)(info,buf,info->nextpos,1));
 
44
  DBUG_RETURN ((*info->s->read_rnd)(info,buf,info->nextpos,1));
43
45
}