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

Method schedule

plugins/slice/prefetch.cc:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include "prefetch.h"
26
27bool
28BgBlockFetch::schedule(Data *const data, int blocknum)
29{
30 bool ret = false;
31 BgBlockFetch *bg = new BgBlockFetch(blocknum);
32 if (bg->fetch(data)) {
33 ret = true;
34 } else {
35 delete bg;
36 }
37 return ret;
38}
39
40/**
41 * Initialize and schedule the background fetch

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected