Commit d4b586e8 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4882] fix handlerton to set compression method before db->open


git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@43528 c7de825b-a66e-492c-adef-691d508d4ae1
parent cd7cd6f4
......@@ -6257,6 +6257,11 @@ static int create_sub_table(
goto exit;
}
}
error = file->set_compression_method(file, compression_method);
if (error != 0) {
DBUG_PRINT("error", ("Got error: %d when setting compression type %u for table '%s'", error, compression_method, table_name));
goto exit;
}
create_flags = DB_THREAD | DB_CREATE | DB_EXCL | (is_hot_index ? DB_IS_HOT_INDEX : 0);
error = file->open(file, txn, table_name, NULL, DB_BTREE, create_flags, my_umask);
......@@ -6265,12 +6270,6 @@ static int create_sub_table(
goto exit;
}
error = file->set_compression_method(file, compression_method);
if (error != 0) {
DBUG_PRINT("error", ("Got error: %d when setting compression type %u for table '%s'", error, compression_method, table_name));
goto exit;
}
error = file->change_descriptor(file, txn, row_descriptor, (is_hot_index ? DB_IS_HOT_INDEX | DB_UPDATE_CMP_DESCRIPTOR : DB_UPDATE_CMP_DESCRIPTOR));
if (error) {
DBUG_PRINT("error", ("Got error: %d when setting row descriptor for table '%s'", error, table_name));
......
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