~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_performance.cc

Merge Stewart's dead code removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
 
#include "config.h"
 
16
#include "drizzled/global.h"
17
17
 
18
18
#include "azio.h"
19
19
#include <string.h>
21
21
#include <stdio.h>
22
22
#include <stdlib.h>
23
23
#include <string.h>
24
 
#include <fcntl.h>
25
 
#include <sys/stat.h>
26
 
#include "drizzled/option.h"
 
24
#include <mysys/my_getopt.h>
27
25
 
28
26
#if TIME_WITH_SYS_TIME
29
27
# include <sys/time.h>
56
54
  struct timeval start_time, end_time;
57
55
  long int timing;
58
56
 
59
 
  drizzled::internal::my_init();
 
57
  my_init();
60
58
  MY_INIT(argv[0]);
61
59
 
62
60
  if (argc != 1)
71
69
    azio_stream reader_handle;
72
70
 
73
71
    if (method)
74
 
      printf("Performing azio_read() test\n");
 
72
      printf("Performing aio_read() test\n");
75
73
    else
76
74
      printf("Performing read() test\n");
77
75
 
91
89
    azclose(&reader_handle);
92
90
  }
93
91
 
94
 
  drizzled::internal::my_end();
 
92
  my_end(0);
95
93
 
96
94
  return 0;
97
95
}