| 2126 | |
| 2127 | |
| 2128 | void 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 | |
| 2148 | void StorageLocalResourceProviderProcess::checkpointResourceProviderState() |
nothing calls this directly
no test coverage detected