-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32140/
-----------------------------------------------------------
Review request for mesos, Alexander Rukletsov, Ben Mahler, and Jie Yu.
Bugs: MESOS-2476
https://issues.apache.org/jira/browse/MESOS-2476
Repository: mesos
Description
-------
`Resource::ReservationInfo` was introduced in
[r32139](https://reviews.apache.org/r/32139). We need to consider it in our
`Resources` class implementation.
### `Resources::flatten`
`flatten` is used as the utility function to cross reservation boundaries
without affecting the given resources. Since the reservation is now specified
by the (`role`, `reservation`) pair, `flatten` needs to consider
`ReservationInfo` as well.
### `Resources::validate`
If `role == "*"`, then `reservation` field must not be set.
### `Resources` comparators
`operator==`, `addable` and `substractable` need to test for `ReservationInfo`
as well.
Diffs
-----
include/mesos/resources.hpp da6d48871a0061d8bbf5e681dd6e7edac659d812
src/common/resources.cpp 2c99b6884d7296099e19e2e3182cbe11b5e1e059
Diff: https://reviews.apache.org/r/32140/diff/
Testing
-------
make check
Thanks,
Michael Park