Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 5, 2024
1 parent 17414ee commit 2e2d036
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/api/pdc_client_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -9451,16 +9451,16 @@ PDC_Client_query_kvtag_mpi(const pdc_kvtag_t *kvtag, int *n_res, uint64_t **pdc_
}

BULKI_KV_Pair_Iterator *bulki_iter = BULKI_KV_Pair_iterator_init(deserializedBulki_g);
BULKI_KV_Pair *obj_kv, *tag_kv;
BULKI *tag_bulki;
BULKI_KV_Pair * obj_kv, *tag_kv;
BULKI * tag_bulki;
// Iterate and get query result
while (NULL != (obj_kv = BULKI_KV_Pair_iterator_next(bulki_iter))) {

pdc_id = *((uint64_t *)obj_kv->key.data);
/* printf("id: [%llu]\n", pdc_id); */

BULKI_Entity_Iterator *bent_iter = Bent_iterator_init(&obj_kv->value, NULL, PDC_BULKI);
while(NULL != (tag_bulki = Bent_iterator_next_BULKI(bent_iter))) {
while (NULL != (tag_bulki = Bent_iterator_next_BULKI(bent_iter))) {

BULKI_KV_Pair_Iterator *tag_iter = BULKI_KV_Pair_iterator_init(tag_bulki);
while (NULL != (tag_kv = BULKI_KV_Pair_iterator_next(tag_iter))) {
Expand All @@ -9480,7 +9480,7 @@ PDC_Client_query_kvtag_mpi(const pdc_kvtag_t *kvtag, int *n_res, uint64_t **pdc_
/* printf("Found match %s:%d\n", query_tag.name, *(int*)query_tag.value); */
}
} // End if same type
} // End tag while
} // End tag while
}
} // End obj while
*n_res = iter;
Expand Down
8 changes: 4 additions & 4 deletions src/server/pdc_server_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1930,11 +1930,11 @@ PDC_Server_seralize_kvtag_someta_to_shm(uint32_t *n_meta, uint64_t **obj_ids, ui
{
if (elt->kvtag_list_head) {
obj_key = BULKI_ENTITY(&elt->obj_id, 1, PDC_UINT64, PDC_CLS_ITEM);
count = 0;
count = 0;
DL_COUNT(elt->kvtag_list_head, kvtag_list_elt, count);
BULKI *kvtag_bulki = BULKI_init(count);

// iterate over each kv pair of current obj
// iterate over each kv pair of current obj
// save each kv pair as a bulki
DL_FOREACH(elt->kvtag_list_head, kvtag_list_elt)
{
Expand All @@ -1960,8 +1960,8 @@ PDC_Server_seralize_kvtag_someta_to_shm(uint32_t *n_meta, uint64_t **obj_ids, ui
BULKI_put(bulki, obj_key, obj_value);

} // End if obj has kv tag
} // End for each metadata from hash table entry
} // End for each metadata from hash table entry

if (nkvtag_in_buf >= nkvtag_per_buf) {
// Create a shm
bulki_size = get_BULKI_size(bulki);
Expand Down

0 comments on commit 2e2d036

Please sign in to comment.