| 1053 | |
| 1054 | |
| 1055 | ContainerID 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 | |
| 1071 | ContainerID parseContainerId(const string& value) |
no outgoing calls
no test coverage detected