~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

Removed global.h. Fixed all the headers.
Also fixed headers to allow for some out of tree builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include "ha_archive.h"
27
27
 
28
 
#include <stdio.h>
 
28
#include <unistd.h>
 
29
#include <fcntl.h>
 
30
 
 
31
#include <cstdio>
29
32
#include <string>
30
33
#include <map>
31
34
 
361
364
  buffer.set((char *)byte_buffer, IO_SIZE, system_charset_info);
362
365
 
363
366
  /* The size of the offset value we will use for position() */
364
 
  ref_length= sizeof(my_off_t);
 
367
  ref_length= sizeof(uint64_t);
365
368
  archive_reader_open= false;
366
369
}
367
370
 
1096
1099
int ha_archive::rnd_pos(unsigned char * buf, unsigned char *pos)
1097
1100
{
1098
1101
  ha_statistic_increment(&SSV::ha_read_rnd_next_count);
1099
 
  current_position= (my_off_t)my_get_ptr(pos, ref_length);
 
1102
  current_position= (uint64_t)my_get_ptr(pos, ref_length);
1100
1103
  if (azseek(&archive, (size_t)current_position, SEEK_SET) == (size_t)(-1L))
1101
1104
    return(HA_ERR_CRASHED_ON_USAGE);
1102
1105
  return(get_row(&archive, buf));