~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/dict/create_replication.cc

merged with up to date trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
  return error;
179
179
}
180
180
 
181
 
UNIV_INTERN struct read_replication_state_st *replication_read_init(void)
 
181
UNIV_INTERN read_replication_state_st *replication_read_init(void)
182
182
{
183
 
  struct read_replication_state_st *state= calloc(1, sizeof(struct read_replication_state_st));
 
183
  read_replication_state_st *state= new read_replication_state_st;
184
184
 
185
185
  mutex_enter(&(dict_sys->mutex));
186
186
 
199
199
{
200
200
  btr_pcur_close(&state->pcur);
201
201
  mtr_commit(&state->mtr);
202
 
  free(state);
 
202
  delete state;
203
203
}
204
204
 
205
205
UNIV_INTERN struct read_replication_return_st replication_read_next(struct read_replication_state_st *state)