Skip to content

Commit

Permalink
Update tag delete function
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Jul 18, 2023
1 parent b29f60e commit 22340ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/api/pdc_client_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -7409,7 +7409,8 @@ PDC_Client_query_kvtag_col(const pdc_kvtag_t *kvtag, int *n_res, uint64_t **pdc_
FUNC_LEAVE(ret_value);
}

perr_t
// Delete a tag specified by a name, and whether it is from a container or an object
static perr_t
PDCtag_delete(pdcid_t obj_id, char *tag_name, int is_cont)
{
perr_t ret_value = SUCCEED;
Expand Down
2 changes: 1 addition & 1 deletion src/tests/kvtag_add_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ main()
else
printf("successfully retrieved a kvtag [%s] = [%f] from o2\n", kvtag3.name, *(double *)value3);

if (PDCtag_delete(obj1, kvtag1.name) < 0)
if (PDCobj_del_tag(obj1, kvtag1.name) < 0)
printf("fail to delete a kvtag from o1\n");
else
printf("successfully deleted a kvtag [%s] from o1\n", kvtag1.name);
Expand Down

0 comments on commit 22340ba

Please sign in to comment.