MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / unlink_from_query_list

Function unlink_from_query_list

modules/sql_cacher/sql_cacher.c:1622–1634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1620}
1621
1622static void unlink_from_query_list(struct queried_key *pos)
1623{
1624 struct queried_key *prev;
1625
1626 if (pos == *queries_in_progress) {
1627 *queries_in_progress = (*queries_in_progress)->next;
1628 return;
1629 }
1630
1631 for (prev = *queries_in_progress; prev->next != pos; prev = prev->next) ;
1632
1633 prev->next = pos->next;
1634}
1635
1636/* return:
1637 * 0 - succes => if str column, @str_res->s must be pkg_free()'d

Callers 1

on_demand_loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected