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

Method expunge

src/state/zookeeper.cpp:292–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290
291
292Future<bool> ZooKeeperStorageProcess::expunge(const Entry& entry)
293{
294 if (error.isSome()) {
295 return Failure(error.get());
296 } else if (state != CONNECTED) {
297 Expunge* expunge = new Expunge(entry);
298 pending.expunges.push(expunge);
299 return expunge->promise.future();
300 }
301
302 Result<bool> result = doExpunge(entry);
303
304 if (result.isNone()) { // Try again later.
305 Expunge* expunge = new Expunge(entry);
306 pending.expunges.push(expunge);
307 return expunge->promise.future();
308 } else if (result.isError()) {
309 return Failure(result.error());
310 }
311
312 return result.get();
313}
314
315
316void ZooKeeperStorageProcess::connected(int64_t sessionId, bool reconnect)

Callers

nothing calls this directly

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