MCPcopy Create free account
hub / github.com/apache/mesos / needCheckpointing

Function needCheckpointing

src/common/resources_utils.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace mesos {
29
30bool needCheckpointing(const Resource& resource)
31{
32 return !Resources::hasResourceProvider(resource) &&
33 (Resources::isDynamicallyReserved(resource) ||
34 Resources::isPersistentVolume(resource));
35}
36
37
38// NOTE: We effectively duplicate the logic in 'Resources::apply'

Callers 2

TEST_PFunction · 0.85
foreachFunction · 0.85

Calls

no outgoing calls

Tested by 1

TEST_PFunction · 0.68