Code for tests storing data in multiple AVLs.

(note: unretrievable data as implemented)
This commit is contained in:
Celine Mercier
2016-03-11 15:34:55 +01:00
parent 21d1b2ed3e
commit 545ed8111a
6 changed files with 205 additions and 17 deletions

View File

@ -61,7 +61,7 @@ int obi_column_set_obistr_with_elt_idx(OBIDMS_column_p column, index_t line_nb,
return -1;
// 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;
@ -129,7 +129,7 @@ const char* obi_column_get_obistr_with_elt_idx(OBIDMS_column_p column, index_t l
if (idx == OBIIdx_NA)
return OBIStr_NA;
value_b = obi_avl_get(column->avl, idx);
//value_b = obi_avl_get(column->avl, idx);
return obi_obibytes_to_str(value_b);
}