diff --git a/src/api/pdc_client_connect.c b/src/api/pdc_client_connect.c index ad7347a81..d3d3e6298 100644 --- a/src/api/pdc_client_connect.c +++ b/src/api/pdc_client_connect.c @@ -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; diff --git a/src/tests/kvtag_add_get.c b/src/tests/kvtag_add_get.c index 7d53da6a6..ad06b506b 100644 --- a/src/tests/kvtag_add_get.c +++ b/src/tests/kvtag_add_get.c @@ -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);