~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_rrnd.c

  • Committer: Stewart Smith
  • Date: 2008-07-13 06:56:15 UTC
  • mto: (210.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 211.
  • Revision ID: stewart@flamingspork.com-20080713065615-vzok75kgnnviokl9
Move MD5() into a UDF

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
   get by MI_INFO. The next record can be read with pos= MI_POS_ERROR */
18
18
 
19
19
 
20
 
#include "myisam_priv.h"
21
 
 
22
 
using namespace drizzled;
 
20
#include "myisamdef.h"
23
21
 
24
22
/*
25
23
           Read a row based on position.
31
29
           HA_ERR_END_OF_FILE = EOF.
32
30
*/
33
31
 
34
 
int mi_rrnd(MI_INFO *info, unsigned char *buf, register internal::my_off_t filepos)
 
32
int mi_rrnd(MI_INFO *info, uchar *buf, register my_off_t filepos)
35
33
{
36
 
  bool skip_deleted_blocks;
 
34
  my_bool skip_deleted_blocks;
 
35
  DBUG_ENTER("mi_rrnd");
37
36
 
38
37
  skip_deleted_blocks=0;
39
38
 
54
53
  info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
55
54
 
56
55
  if (info->opt_flag & WRITE_CACHE_USED && flush_io_cache(&info->rec_cache))
57
 
    return(errno);
 
56
    DBUG_RETURN(my_errno);
58
57
 
59
 
  return ((*info->s->read_rnd)(info,buf,filepos,skip_deleted_blocks));
 
58
  DBUG_RETURN ((*info->s->read_rnd)(info,buf,filepos,skip_deleted_blocks));
60
59
}