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

Function upperSlaveToAgent

src/common/http.cpp:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158
159string upperSlaveToAgent(string s)
160{
161 size_t index = 0;
162
163 while (true) {
164 index = s.find("SLAVE", index);
165 if (index == std::string::npos) break;
166 s.replace(index, 5, "AGENT");
167 index += 5;
168 }
169
170 return s;
171}
172
173
174// This is a copy of the version in stout:

Callers 1

foreachFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected