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

Function ClearConfigVol

src/iocore/cache/unit_tests/test_CacheVol.cc:302–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302int
303ClearConfigVol(ConfigVolumes *configp)
304{
305 int i = 0;
306 ConfigVol *cp = nullptr;
307 while ((cp = configp->cp_queue.dequeue())) {
308 delete cp;
309 i++;
310 }
311 if (i != configp->num_volumes) {
312 Warning("failed");
313 return 0;
314 }
315 configp->num_volumes = 0;
316 configp->num_http_volumes = 0;
317 return 1;
318}
319
320int
321ClearCacheVolList(Queue<CacheVol> *cpl, int len)

Callers 1

execute_and_verifyFunction · 0.85

Calls 1

dequeueMethod · 0.45

Tested by

no test coverage detected