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

Function isRejectedPromise

src/log/consensus.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace log {
44
45static bool isRejectedPromise(const PromiseResponse& response)
46{
47 if (response.has_type()) {
48 // New format (Mesos >= 0.26).
49 return response.type() == PromiseResponse::REJECT;
50 } else {
51 // Old format (Mesos < 0.26).
52 return !response.okay();
53 }
54}
55
56
57static bool isRejectedWrite(const WriteResponse& response)

Callers 2

receivedMethod · 0.85
receivedMethod · 0.85

Calls 1

typeMethod · 0.80

Tested by

no test coverage detected