Commit da5e2a19 authored by Rich Prohaska's avatar Rich Prohaska

#206 compile without partition storage engine

parent 38b95830
......@@ -1634,14 +1634,9 @@ int ha_tokudb::initialize_share(
goto exit;
}
#if TOKU_PARTITION_WRITE_FRM_DATA
// verify frm data for all tables
error = verify_frm_data(table->s->path.str, txn);
if (error)
goto exit;
#else
#if WITH_PARTITION_STORAGE_ENGINE
// verify frm data for non-partitioned tables
if (table->part_info == NULL) {
if (TOKU_PARTITION_WRITE_FRM_DATA || table->part_info == NULL) {
error = verify_frm_data(table->s->path.str, txn);
if (error)
goto exit;
......@@ -1651,6 +1646,10 @@ int ha_tokudb::initialize_share(
if (error)
goto exit;
}
#else
error = verify_frm_data(table->s->path.str, txn);
if (error)
goto exit;
#endif
error = initialize_key_and_col_info(
......@@ -6891,16 +6890,16 @@ int ha_tokudb::create(const char *name, TABLE * form, HA_CREATE_INFO * create_in
error = write_auto_inc_create(status_block, create_info->auto_increment_value, txn);
if (error) { goto cleanup; }
#if TOKU_PARTITION_WRITE_FRM_DATA
error = write_frm_data(status_block, txn, form->s->path.str);
if (error) { goto cleanup; }
#else
// only for tables that are not partitioned
if (form->part_info == NULL) {
#if WITH_PARTITION_STORAGE_ENGINE
if (TOKU_PARTITION_WRITE_FRM_DATA || form->part_info == NULL) {
error = write_frm_data(status_block, txn, form->s->path.str);
if (error) { goto cleanup; }
}
#else
error = write_frm_data(status_block, txn, form->s->path.str);
if (error) { goto cleanup; }
#endif
error = allocate_key_and_col_info(form->s, &kc_info);
if (error) { goto cleanup; }
......
......@@ -520,7 +520,11 @@ bool ha_tokudb::inplace_alter_table(TABLE *altered_table, Alter_inplace_info *ha
#if (50600 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50699) || \
(50700 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50799)
#if WITH_PARTITION_STORAGE_ENGINE
if (error == 0 && (TOKU_PARTITION_WRITE_FRM_DATA || altered_table->part_info == NULL)) {
#else
if (error == 0) {
#endif
error = write_frm_data(share->status_block, ctx->alter_txn, altered_table->s->path.str);
}
#endif
......@@ -731,7 +735,11 @@ bool ha_tokudb::commit_inplace_alter_table(TABLE *altered_table, Alter_inplace_i
#endif
#if (50500 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50599) || \
(100000 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 100099)
#if WITH_PARTITION_STORAGE_ENGINE
if (TOKU_PARTITION_WRITE_FRM_DATA || altered_table->part_info == NULL) {
#else
if (true) {
#endif
int error = write_frm_data(share->status_block, ctx->alter_txn, altered_table->s->path.str);
if (error) {
commit = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment