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

Method getApprover

src/tests/master_load_tests.cpp:132–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 Future<shared_ptr<const ObjectApprover>> getApprover(
133 const Option<authorization::Subject>& subject,
134 const authorization::Action& action)
135 {
136 Future<shared_ptr<const ObjectApprover>> future =
137 underlying_->getApprover(subject, action);
138
139 if (!blocked_) {
140 return future;
141 }
142
143 // The future is linked to the returned promise in `unleash()`.
144 futures_.push(future);
145 promises_.emplace();
146 return promises_.back().future();
147 }
148
149 Future<size_t> pending()
150 {

Callers

nothing calls this directly

Calls 3

pushMethod · 0.80
getApproverMethod · 0.45
futureMethod · 0.45

Tested by

no test coverage detected