3209
Change partitions: public interface.
3211
@sa handler::change_partitions()
3215
handler::ha_change_partitions(HA_CREATE_INFO *create_info,
3219
const uchar *pack_frm_data,
3220
size_t pack_frm_len)
3222
mark_trx_read_write();
3224
return change_partitions(create_info, path, copied, deleted,
3225
pack_frm_data, pack_frm_len);
3230
Drop partitions: public interface.
3232
@sa handler::drop_partitions()
3236
handler::ha_drop_partitions(const char *path)
3238
mark_trx_read_write();
3240
return drop_partitions(path);
3245
Rename partitions: public interface.
3247
@sa handler::rename_partitions()
3251
handler::ha_rename_partitions(const char *path)
3253
mark_trx_read_write();
3255
return rename_partitions(path);
3260
Optimize partitions: public interface.
3262
@sa handler::optimize_partitions()
3266
handler::ha_optimize_partitions(THD *thd)
3268
mark_trx_read_write();
3270
return optimize_partitions(thd);
3275
Analyze partitions: public interface.
3277
@sa handler::analyze_partitions()
3281
handler::ha_analyze_partitions(THD *thd)
3283
mark_trx_read_write();
3285
return analyze_partitions(thd);
3290
Check partitions: public interface.
3292
@sa handler::check_partitions()
3296
handler::ha_check_partitions(THD *thd)
3298
mark_trx_read_write();
3300
return check_partitions(thd);
3305
Repair partitions: public interface.
3307
@sa handler::repair_partitions()
3311
handler::ha_repair_partitions(THD *thd)
3313
mark_trx_read_write();
3315
return repair_partitions(thd);
3320
3209
Tell the storage engine that it is allowed to "disable transaction" in the
3321
3210
handler. It is a hint that ACID is not required - it is used in NDB for
3322
3211
ALTER TABLE, for example, when data are copied to temporary table.
3403
void handler::get_dynamic_partition_info(PARTITION_INFO *stat_info,
3406
info(HA_STATUS_CONST | HA_STATUS_TIME | HA_STATUS_VARIABLE |
3408
stat_info->records= stats.records;
3409
stat_info->mean_rec_length= stats.mean_rec_length;
3410
stat_info->data_file_length= stats.data_file_length;
3411
stat_info->max_data_file_length= stats.max_data_file_length;
3412
stat_info->index_file_length= stats.index_file_length;
3413
stat_info->delete_length= stats.delete_length;
3414
stat_info->create_time= stats.create_time;
3415
stat_info->update_time= stats.update_time;
3416
stat_info->check_time= stats.check_time;
3417
stat_info->check_sum= 0;
3418
if (table_flags() & (ulong) HA_HAS_CHECKSUM)
3419
stat_info->check_sum= checksum();
3424
3292
/****************************************************************************
3425
3293
** Some general functions that isn't in the handler class
3426
3294
****************************************************************************/