Code for tests storing data in multiple AVLs.
(note: unretrievable data as implemented)
This commit is contained in:
@ -61,8 +61,13 @@ int obi_column_set_obiseq_with_elt_idx(OBIDMS_column_p column, index_t line_nb,
|
||||
if (value_b == NULL)
|
||||
return -1;
|
||||
|
||||
if (strlen(value_b) == 0)
|
||||
fprintf(stderr, "\nPOUIC");
|
||||
|
||||
//fprintf(stderr, "\n>%s||%s", value, obi_obibytes_to_seq(value_b));
|
||||
|
||||
// Add in the AVL tree
|
||||
idx = obi_avl_add(column->avl, value_b);
|
||||
idx = obi_avl_add((column->avl)[compute_crc(value)], value_b);
|
||||
if (idx == -1)
|
||||
return -1;
|
||||
|
||||
@ -130,7 +135,7 @@ const char* obi_column_get_obiseq_with_elt_idx(OBIDMS_column_p column, index_t l
|
||||
if (idx == OBIIdx_NA)
|
||||
return OBISeq_NA;
|
||||
|
||||
value_b = obi_avl_get(column->avl, idx);
|
||||
//value_b = obi_avl_get((column->avl)[crc(value)], idx);
|
||||
return obi_obibytes_to_seq(value_b);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user