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

Method toUnreserved

src/v1/resources.cpp:1769–1786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1767
1768
1769Resources Resources::toUnreserved() const
1770{
1771 Resources result;
1772
1773 foreach (
1774 const Resource_Unsafe& resource_,
1775 resourcesNoMutationWithoutExclusiveOwnership) {
1776 if (isReserved(resource_->resource)) {
1777 Resource_ r_ = *resource_;
1778 r_.resource.clear_reservations();
1779 result.add(std::move(r_));
1780 } else {
1781 result.add(resource_);
1782 }
1783 }
1784
1785 return result;
1786}
1787
1788
1789Resources Resources::createStrippedScalarQuantity() const

Callers 13

TEST_PFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
ACTION_P5Function · 0.45
findMethod · 0.45
foreachFunction · 0.45
foreachMethod · 0.45
foreachMethod · 0.45
foreachMethod · 0.45
foreachMethod · 0.45
foreachMethod · 0.45
foreachMethod · 0.45

Calls

no outgoing calls

Tested by 6

TEST_PFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
ACTION_P5Function · 0.36
foreachMethod · 0.36
foreachMethod · 0.36