Commit 05e8d405 authored by marko's avatar marko

branches/zip: dict_col_get_clust_pos(): Split a debug assertion, and

make use of dict_index_is_clust().
parent 57b30811
...@@ -126,7 +126,8 @@ dict_col_get_clust_pos( ...@@ -126,7 +126,8 @@ dict_col_get_clust_pos(
ulint i; ulint i;
ut_ad(col); ut_ad(col);
ut_ad(clust_index && clust_index->type & DICT_CLUSTERED); ut_ad(clust_index);
ut_ad(dict_index_is_clust(clust_index));
for (i = 0; i < clust_index->n_def; i++) { for (i = 0; i < clust_index->n_def; i++) {
const dict_field_t* field = &clust_index->fields[i]; const dict_field_t* field = &clust_index->fields[i];
......
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