> On May 12, 2017, 6:19 p.m., Jiang Yan Xu wrote: > > src/common/resources.cpp > > Lines 1417 (patched) > > <https://reviews.apache.org/r/59194/diff/1/?file=1715965#file1715965line1417> > > > > If this check fails we would return an Error directly so doesn't look > > like we need this temp var?
Yes, that is right. - Anindya ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/59194/#review174772 ----------------------------------------------------------- On May 13, 2017, 4:50 a.m., Anindya Sinha wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/59194/ > ----------------------------------------------------------- > > (Updated May 13, 2017, 4:50 a.m.) > > > Review request for mesos, James Peach and Jiang Yan Xu. > > > Bugs: MESOS-7403 > https://issues.apache.org/jira/browse/MESOS-7403 > > > Repository: mesos > > > Description > ------- > > Ensure that applying `DESTROY` operation removes this volume. This is > needed to handle `DESTROY` of shared volumes to ensure that the > resultant `Resources` object has this `Resource` removed (i.e. we > allow this operation to succeed if the original `Resources` object > had a single copy of the shared resource). > > > Diffs > ----- > > src/common/resources.cpp f6f02eb0a7ca05ab8fd9a670f32428862009b7d5 > src/tests/resources_tests.cpp 4cf320d802a749f1419ac5b9f63b6c73b0c974be > src/v1/resources.cpp cad069defb34d5ccc20a0e083eb88cb80f70e415 > > > Diff: https://reviews.apache.org/r/59194/diff/2/ > > > Testing > ------- > > All tests passed. > > > Thanks, > > Anindya Sinha > >
