~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_performance.cc

[patch 112/129] Merge patch for revision 1925 from InnoDB SVN:
revno: 1925
revision-id: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6169
parent: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6163
committer: calvin
timestamp: Thu 2009-11-12 12:40:43 +0000
message:
  branches/zip: add test case for bug#46676
  
  This crash is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37.
  But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5).
  Add test case to catch future regression.
added:
  mysql-test/innodb_bug46676.result 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.result
  mysql-test/innodb_bug46676.test 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.test
diff:
=== added file 'mysql-test/innodb_bug46676.result'

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