~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_performance.cc

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:20:34 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114052034-b45vpdmk4a8l70c2
just a syntax fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <string.h>
24
24
#include <fcntl.h>
25
25
#include <sys/stat.h>
26
 
#include "drizzled/option.h"
 
26
#include <memory>
27
27
 
28
28
#if TIME_WITH_SYS_TIME
29
29
# include <sys/time.h>
36
36
# endif
37
37
#endif
38
38
 
 
39
#include <boost/scoped_ptr.hpp>
39
40
 
40
41
#define TEST_FILENAME "performance_test.az"
41
42
 
68
69
  for (method= AZ_METHOD_BLOCK; method < AZ_METHOD_MAX; method++)
69
70
  {
70
71
    unsigned int ret;
71
 
    azio_stream reader_handle;
 
72
    boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
 
73
    azio_stream &reader_handle= *reader_handle_ap.get();
72
74
 
73
75
    if (method)
74
76
      printf("Performing azio_read() test\n");
98
100
 
99
101
static int generate_data(uint64_t rows_to_test)
100
102
{
101
 
  azio_stream writer_handle;
 
103
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
 
104
  azio_stream &writer_handle= *writer_handle_ap.get();
102
105
  uint64_t x;
103
106
  unsigned int ret;
104
107
  struct timeval start_time, end_time;