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

Method decreaseAvailable

src/master/allocator/mesos/hierarchical.hpp:413–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411 }
412
413 void decreaseAvailable(
414 const FrameworkID& frameworkId, const Resources& offeredOrAllocated_)
415 {
416 if (offeredOrAllocated_.empty()) {
417 return;
418 }
419
420 // Decreasing available is to add offered or allocated.
421
422 offeredOrAllocated[frameworkId] += offeredOrAllocated_;
423
424 totalOfferedOrAllocated += offeredOrAllocated_;
425
426 updateAvailable();
427 }
428
429 const SlaveID id;
430

Callers 3

foreachpairFunction · 0.80
updateAllocationMethod · 0.80
foreachFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected