~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/mf_iocache.cc

Removed/replaced DBUG symbols and standardized TRUE/FALSE

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
  @retval
46
46
    0   if record read
47
47
*/
48
 
 
49
 
 
50
48
int _my_b_net_read(register IO_CACHE *info, uchar *Buffer,
51
49
                   size_t Count __attribute__((unused)))
52
50
{
53
51
  ulong read_length;
54
52
  NET *net= &(current_thd)->net;
55
 
  DBUG_ENTER("_my_b_net_read");
56
53
 
57
54
  if (!info->end_of_file)
58
 
    DBUG_RETURN(1);     /* because my_b_get (no _) takes 1 byte at a time */
 
55
    return(1);  /* because my_b_get (no _) takes 1 byte at a time */
59
56
  read_length=my_net_read(net);
60
57
  if (read_length == packet_error)
61
58
  {
62
59
    info->error= -1;
63
 
    DBUG_RETURN(1);
 
60
    return(1);
64
61
  }
65
62
  if (read_length == 0)
66
63
  {
67
64
    info->end_of_file= 0;                       /* End of file from client */
68
 
    DBUG_RETURN(1);
 
65
    return(1);
69
66
  }
70
67
  /* to set up stuff for my_b_get (no _) */
71
68
  info->read_end = (info->read_pos = (uchar*) net->read_pos) + read_length;
81
78
 
82
79
  info->read_pos++;
83
80
 
84
 
  DBUG_RETURN(0);
 
81
  return(0);
85
82
}
86
83
 
87
84
} /* extern "C" */
88
85
#endif /* HAVE_REPLICATION */
89
 
 
90