Code for tests storing data in multiple AVLs.
(note: unretrievable data as implemented)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user