~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_performance.cc

  • Committer: Tim Martin
  • Date: 2010-04-05 14:22:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1452.
  • Revision ID: timm@woolly-20100405142201-0qeekehrbui768he
Removed function prototype left over after previous 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 "config.h"
17
17
 
18
18
#include "azio.h"
19
19
#include <string.h>
23
23
#include <string.h>
24
24
#include <fcntl.h>
25
25
#include <sys/stat.h>
26
 
#include <memory>
 
26
#include "drizzled/my_getopt.h"
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>
40
39
 
41
40
#define TEST_FILENAME "performance_test.az"
42
41
 
69
68
  for (method= AZ_METHOD_BLOCK; method < AZ_METHOD_MAX; method++)
70
69
  {
71
70
    unsigned int ret;
72
 
    boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
73
 
    azio_stream &reader_handle= *reader_handle_ap.get();
 
71
    azio_stream reader_handle;
74
72
 
75
73
    if (method)
76
74
      printf("Performing azio_read() test\n");
100
98
 
101
99
static int generate_data(uint64_t rows_to_test)
102
100
{
103
 
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
104
 
  azio_stream &writer_handle= *writer_handle_ap.get();
 
101
  azio_stream writer_handle;
105
102
  uint64_t x;
106
103
  unsigned int ret;
107
104
  struct timeval start_time, end_time;