~linuxjedi/libdrizzle/5.1-fix-mingw

« back to all changes in this revision

Viewing changes to cli/drizzle_binlogs.c

  • Committer: Continuous Integration
  • Date: 2013-01-13 22:40:39 UTC
  • mfrom: (92.1.1 5.1-perf)
  • Revision ID: ci@drizzle.org-20130113224039-r18qjzflwlnyh5aa
Merge lp:~linuxjedi/libdrizzle/5.1-perf Build: jenkins-Libdrizzle-47

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
char *start_file= NULL;
67
67
uint32_t start_pos= 0;
68
68
bool continuous= false;
 
69
bool verify_checksums= false;
69
70
uint8_t opt_count= 0;
70
71
 
71
72
typedef enum
78
79
  OPT_OUTDIR,
79
80
  OPT_FILE,
80
81
  OPT_START_POS,
81
 
  OPT_CONTINUOUS
 
82
  OPT_CONTINUOUS,
 
83
  OPT_VERIFY_CHECKSUMS
82
84
} option_consts_t;
83
85
 
84
86
static struct argp_option options[]= {
91
93
  { "start-file", OPT_FILE, "FILENAME", 0, "Binlog file to start with", 1 },
92
94
  { "start-pos", OPT_START_POS, "POS", 0, "Position to start with", 1 },
93
95
  { "continuous", OPT_CONTINUOUS, 0, 0, "Continous download mode", 1 },
 
96
  { "verify-checksums", OPT_VERIFY_CHECKSUMS, 0, 0, "Verify binlog checkums", 1 },
94
97
  { 0 }
95
98
};
96
99
 
133
136
      continuous= true;
134
137
      opt_count++;
135
138
      break;
 
139
    case OPT_VERIFY_CHECKSUMS:
 
140
      verify_checksums= true;
 
141
      opt_count++;
 
142
      break;
136
143
    case ARGP_KEY_NO_ARGS:
137
144
      break;
138
145
    default:
229
236
    server_id= 0;
230
237
  }
231
238
 
232
 
  result= drizzle_start_binlog(con, server_id, start_file, start_pos, &ret);
 
239
  result= drizzle_start_binlog(con, server_id, start_file, start_pos, verify_checksums, &ret);
233
240
  if (ret != DRIZZLE_RETURN_OK)
234
241
  {
235
242
    printf("Drizzle binlog start failure: %s\n", drizzle_error(con));