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

Function lowerSlaveToAgent

src/common/http.cpp:144–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143
144string lowerSlaveToAgent(string s)
145{
146 size_t index = 0;
147
148 while (true) {
149 index = s.find("slave", index);
150 if (index == std::string::npos) break;
151 s.replace(index, 5, "agent");
152 index += 5;
153 }
154
155 return s;
156}
157
158
159string upperSlaveToAgent(string s)

Callers 1

foreachFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected