~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/mf_iocache.cc

  • Committer: Mark Atwood
  • Date: 2008-10-16 11:33:16 UTC
  • mto: (520.1.13 drizzle)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: mark@fallenpegasus.com-20081016113316-ff6jdt31ck90sjdh
an implemention of the errmsg plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  flush_io_cache().  
33
33
*/
34
34
#include <drizzled/server_includes.h>
35
 
#ifdef HAVE_REPLICATION
36
35
 
37
36
extern "C" {
38
37
 
44
43
  @retval
45
44
    0   if record read
46
45
*/
47
 
int _my_b_net_read(register IO_CACHE *info, uchar *Buffer,
 
46
int _my_b_net_read(register IO_CACHE *info, unsigned char *Buffer,
48
47
                   size_t Count __attribute__((unused)))
49
48
{
50
49
  ulong read_length;
64
63
    return(1);
65
64
  }
66
65
  /* to set up stuff for my_b_get (no _) */
67
 
  info->read_end = (info->read_pos = (uchar*) net->read_pos) + read_length;
 
66
  info->read_end = (info->read_pos = (unsigned char*) net->read_pos) + read_length;
68
67
  Buffer[0] = info->read_pos[0];                /* length is always 1 */
69
68
 
70
69
  /*
81
80
}
82
81
 
83
82
} /* extern "C" */
84
 
#endif /* HAVE_REPLICATION */