-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71433/
-----------------------------------------------------------
Review request for mesos, Benjamin Mahler and Meng Zhu.
Bugs: MESOS-1452 and MESOS-9949
https://issues.apache.org/jira/browse/MESOS-1452
https://issues.apache.org/jira/browse/MESOS-9949
Repository: mesos
Description
-------
This patch refactors a loop through offer IDs in `Master::accept()`
into two simpler loops: one loop for the offer validation failure case,
another for the case of validation success, thus bringing removal of
offers and recovering their resources close together.
This is a prerequisite for implementing `rescindOffer()`/
`declineOffer()` in the dependent patch.
Diffs
-----
src/master/master.cpp f00906ef2d33920f23127a74ed141fff9d32865b
Diff: https://reviews.apache.org/r/71433/diff/1/
Testing
-------
Thanks,
Andrei Sekretenko