Commit 05d0a5b0 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4840] [t:3383] don't blow away what's in create_info if the user

specified it, in ha_tokudb::update_create_info


git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@43201 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1037bc8f
...@@ -6286,11 +6286,16 @@ exit: ...@@ -6286,11 +6286,16 @@ exit:
void ha_tokudb::update_create_info(HA_CREATE_INFO* create_info) { void ha_tokudb::update_create_info(HA_CREATE_INFO* create_info) {
if (share->has_auto_inc) { if (share->has_auto_inc) {
info(HA_STATUS_AUTO); info(HA_STATUS_AUTO);
create_info->auto_increment_value = stats.auto_increment_value; if (!(create_info->used_fields & HA_CREATE_USED_AUTO) ||
create_info->auto_increment_value < stats.auto_increment_value) {
create_info->auto_increment_value = stats.auto_increment_value;
}
}
if (!(create_info->used_fields & HA_CREATE_USED_ROW_FORMAT)) {
// show create table asks us to update this create_info, this makes it
// so we'll always show what compression type we're using
create_info->row_type = get_row_type();
} }
// show create table asks us to update this create_info, this makes it
// so we'll always show what compression type we're using
create_info->row_type = get_row_type();
} }
// //
......
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