MCPcopy Create free account
hub / github.com/corosync/corosync / icmap_delete_r

Function icmap_delete_r

exec/icmap.c:637–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637cs_error_t icmap_delete_r(const icmap_map_t map, const char *key_name)
638{
639 struct icmap_item *item;
640
641 if (key_name == NULL) {
642 return (CS_ERR_INVALID_PARAM);
643 }
644
645 item = qb_map_get(map->qb_map, key_name);
646 if (item == NULL) {
647 return (CS_ERR_NOT_EXIST);
648 }
649
650 if (qb_map_rm(map->qb_map, item->key_name) != QB_TRUE) {
651 return (CS_ERR_NOT_EXIST);
652 }
653
654 return (CS_OK);
655}
656
657cs_error_t icmap_delete(const char *key_name)
658{

Callers 2

icmap_deleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected