| 300 | } |
| 301 | |
| 302 | int |
| 303 | ClearConfigVol(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 | |
| 320 | int |
| 321 | ClearCacheVolList(Queue<CacheVol> *cpl, int len) |
no test coverage detected