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

Method garbageCollectOperationPath

src/resource_provider/storage/provider.cpp:2128–2145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2126
2127
2128void StorageLocalResourceProviderProcess::garbageCollectOperationPath(
2129 const id::UUID& operationUuid)
2130{
2131 CHECK(!operations.contains(operationUuid));
2132
2133 const string path = slave::paths::getOperationPath(
2134 slave::paths::getResourceProviderPath(
2135 metaDir, slaveId, info.type(), info.name(), info.id()),
2136 operationUuid);
2137
2138 if (os::exists(path)) {
2139 Try<Nothing> rmdir = os::rmdir(path);
2140 if (rmdir.isError()) {
2141 LOG(ERROR)
2142 << "Failed to remove directory '" << path << "': " << rmdir.error();
2143 }
2144 }
2145}
2146
2147
2148void StorageLocalResourceProviderProcess::checkpointResourceProviderState()

Callers

nothing calls this directly

Calls 10

getOperationPathFunction · 0.85
getResourceProviderPathFunction · 0.85
typeMethod · 0.80
errorMethod · 0.65
existsFunction · 0.50
rmdirFunction · 0.50
containsMethod · 0.45
nameMethod · 0.45
idMethod · 0.45
isErrorMethod · 0.45

Tested by

no test coverage detected