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

Function getRootContainerId

src/common/protobuf_utils.cpp:1055–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053
1054
1055ContainerID getRootContainerId(const ContainerID& containerId)
1056{
1057 ContainerID rootContainerId = containerId;
1058 while (rootContainerId.has_parent()) {
1059 // NOTE: Looks like protobuf does not handle copying well when
1060 // nesting message is involved, because the source and the target
1061 // point to the same object. Therefore, we create a temporary
1062 // variable and use an extra copy here.
1063 ContainerID id = rootContainerId.parent();
1064 rootContainerId = id;
1065 }
1066
1067 return rootContainerId;
1068}
1069
1070
1071ContainerID parseContainerId(const string& value)

Callers 15

approvedMethod · 0.85
foreachFunction · 0.85
getExecutorMethod · 0.85
launchMethod · 0.85
waitMethod · 0.85
removeMethod · 0.85
foreachFunction · 0.85
launchMethod · 0.85
______destroyMethod · 0.85
removeMethod · 0.85
isSupportedByIsolatorMethod · 0.85
foreachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected