Home | History | Annotate | Download | only in libdb

Lines Matching full:data

17 static int check_circular_list(odb_data_t const * data)
21 unsigned char * bitmap = malloc(data->descr->current_size);
22 memset(bitmap, '\0', data->descr->current_size);
24 for (pos = 0 ; pos < data->descr->size * BUCKET_FACTOR ; ++pos) {
26 odb_index_t index = data->hash_base[pos];
33 index = data->node_base[index].next;
39 data->descr->current_size);
41 memset(bitmap, '\0', data->descr->current_size);
43 index = data->hash_base[pos];
50 index = data->node_base[index].next;
57 index = data->hash_base[pos];
60 index = data->node_base[index].next;
69 static int check_redundant_key(odb_data_t const * data, odb_key_t max)
76 for (pos = 1 ; pos < data->descr->current_size ; ++pos) {
77 if (bitmap[data->node_base[pos].key]) {
79 (unsigned long long)data->node_base[pos].key);
82 bitmap[data->node_base[pos].key] = 1;
96 odb_data_t * data = odb->data;
98 for (pos = 0 ; pos < data->descr->size * BUCKET_FACTOR ; ++pos) {
99 odb_index_t index = data->hash_base[pos];
101 if (index >= data->descr->current_size) {
107 if (data->node_base[index].key > max)
108 max = data->node_base[index].key;
110 index = data->node_base[index].next;
114 if (nr_node != data->descr->current_size - 1) {
116 nr_node, data->descr->current_size - 1);
126 ret = check_circular_list(data);
129 ret = check_redundant_key(data, max);