Commit 93a75f3e authored by marko's avatar marko

Remove the unused field fixed_offs from dict_field_t.

parent 7c6d2796
...@@ -1632,17 +1632,6 @@ dict_index_add_col( ...@@ -1632,17 +1632,6 @@ dict_index_add_col(
if (!(dtype_get_prtype(&col->type) & DATA_NOT_NULL)) { if (!(dtype_get_prtype(&col->type) & DATA_NOT_NULL)) {
index->n_nullable++; index->n_nullable++;
} }
if (index->n_def > 1) {
const dict_field_t* field2 =
dict_index_get_nth_field(index, index->n_def - 2);
field->fixed_offs = (!field2->fixed_len ||
field2->fixed_offs == ULINT_UNDEFINED)
? ULINT_UNDEFINED
: field2->fixed_len + field2->fixed_offs;
} else {
field->fixed_offs = 0;
}
} }
/*********************************************************************** /***********************************************************************
......
...@@ -175,10 +175,6 @@ struct dict_field_struct{ ...@@ -175,10 +175,6 @@ struct dict_field_struct{
ulint fixed_len; /* 0 or the fixed length of the ulint fixed_len; /* 0 or the fixed length of the
column if smaller than column if smaller than
DICT_MAX_INDEX_COL_LEN */ DICT_MAX_INDEX_COL_LEN */
ulint fixed_offs; /* offset to the field, or
ULINT_UNDEFINED if it is not fixed
within the record (due to preceding
variable-length fields) */
}; };
/* Data structure for an index tree */ /* Data structure for an index tree */
......
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