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

Method set

src/state/zookeeper.cpp:266–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264
265
266Future<bool> ZooKeeperStorageProcess::set(
267 const Entry& entry,
268 const id::UUID& uuid)
269{
270 if (error.isSome()) {
271 return Failure(error.get());
272 } else if (state != CONNECTED) {
273 Set* set = new Set(entry, uuid);
274 pending.sets.push(set);
275 return set->promise.future();
276 }
277
278 Result<bool> result = doSet(entry, uuid);
279
280 if (result.isNone()) { // Try again later.
281 Set* set = new Set(entry, uuid);
282 pending.sets.push(set);
283 return set->promise.future();
284 } else if (result.isError()) {
285 return Failure(result.error());
286 }
287
288 return result.get();
289}
290
291
292Future<bool> ZooKeeperStorageProcess::expunge(const Entry& entry)

Callers 2

connectedMethod · 0.45
doSetMethod · 0.45

Calls 9

FailureClass · 0.85
pushMethod · 0.80
errorMethod · 0.65
dispatchFunction · 0.50
isSomeMethod · 0.45
getMethod · 0.45
futureMethod · 0.45
isNoneMethod · 0.45
isErrorMethod · 0.45

Tested by

no test coverage detected