Commit 3f16b429 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #5502 delete frm data when partitioned tables are opened and the frm data...

refs #5502 delete frm data when partitioned tables are opened and the frm data is not being maintained by the handlerton

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48050 c7de825b-a66e-492c-adef-691d508d4ae1
parent b388d998
...@@ -1684,16 +1684,25 @@ int ha_tokudb::initialize_share( ...@@ -1684,16 +1684,25 @@ int ha_tokudb::initialize_share(
goto exit; goto exit;
} }
// if (TOKU_PARTITION_WRITE_FRM_DATA) {
// verify frm file is what we expect it to be // verify frm data for all tables
// only for tables that are not partitioned
//
if (TOKU_PARTITION_WRITE_FRM_DATA || table->part_info == NULL) {
error = verify_frm_data(table->s->path.str, txn); error = verify_frm_data(table->s->path.str, txn);
if (error) { if (error)
goto exit; goto exit;
} else {
// verify frm data for non-partitioned tables
if (table->part_info == NULL) {
error = verify_frm_data(table->s->path.str, txn);
if (error)
goto exit;
} else {
// remove the frm data for partitions since we are not maintaining it
error = remove_frm_data(share->status_block, txn);
if (error)
goto exit;
} }
} }
error = initialize_key_and_col_info( error = initialize_key_and_col_info(
table_share, table_share,
table, table,
......
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