Skip to content
Snippets Groups Projects
Commit 7adfce73 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge branch 'box-pack-16-bit'

parents bba8f4af 0e6c4dd3
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,8 @@ key_init(struct key_def *def, struct tarantool_cfg_space_index *cfg_index) ...@@ -184,7 +184,8 @@ key_init(struct key_def *def, struct tarantool_cfg_space_index *cfg_index)
def->parts[k].fieldno = cfg_key->fieldno; def->parts[k].fieldno = cfg_key->fieldno;
def->parts[k].type = STR2ENUM(field_data_type, cfg_key->type); def->parts[k].type = STR2ENUM(field_data_type, cfg_key->type);
/* fill compare order */ /* fill compare order */
def->cmp_order[cfg_key->fieldno] = k; if (def->cmp_order[cfg_key->fieldno] == -1)
def->cmp_order[cfg_key->fieldno] = k;
} }
def->is_unique = cfg_index->unique; def->is_unique = cfg_index->unique;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment