MCPcopy Create free account
hub / github.com/apache/trafficserver / copy_config

Function copy_config

plugins/regex_revalidate/regex_revalidate.cc:229–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229static invalidate_t *
230copy_config(invalidate_t *old_list)
231{
232 invalidate_t *new_list = nullptr;
233 invalidate_t *iptr_old, *iptr_new;
234
235 if (old_list) {
236 new_list = copy_invalidate_t(old_list);
237 iptr_old = old_list->next;
238 iptr_new = new_list;
239 while (iptr_old) {
240 iptr_new->next = copy_invalidate_t(iptr_old);
241 iptr_new = iptr_new->next;
242 iptr_old = iptr_old->next;
243 }
244 }
245
246 return new_list;
247}
248
249static bool
250prune_config(invalidate_t **i)

Callers 1

config_handlerFunction · 0.85

Calls 1

copy_invalidate_tFunction · 0.85

Tested by

no test coverage detected