> On March 21, 2018, 4:22 p.m., Greg Mann wrote: > > src/slave/slave.cpp > > Lines 2386 (patched) > > <https://reviews.apache.org/r/66143/diff/2/?file=1983714#file1983714line2386> > > > > Let's make this variable a reference instead to avoid the copy: > > > > ``` > > list<bool>& authorizations = future.get(); > > ```
We are modifying the list below, can't avoid the copy. - Meng ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/66143/#review199705 ----------------------------------------------------------- On March 22, 2018, 10:26 a.m., Meng Zhu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/66143/ > ----------------------------------------------------------- > > (Updated March 22, 2018, 10:26 a.m.) > > > Review request for mesos, Chun-Hung Hsiao and Greg Mann. > > > Bugs: MESOS-8617 and MESOS-8624 > https://issues.apache.org/jira/browse/MESOS-8617 > https://issues.apache.org/jira/browse/MESOS-8624 > > > Repository: mesos > > > Description > ------- > > This helps to encapsulate a task launch into a single > future which will come in handy when enforcing the task > launch order. > > Affected tests are also updated. > > > Diffs > ----- > > src/slave/slave.hpp 37f0361251524e63d02d251e8a03901812b8affb > src/slave/slave.cpp 915d4f1bbd642ca5d2587cfdd846262cb7e08788 > src/tests/mock_slave.hpp 8ec2b65a75f774d970ef6507df8b0c02fda5f2fd > src/tests/mock_slave.cpp 8ec55b6aa84dd8b1c3743cbcdc246311585d0f63 > src/tests/slave_tests.cpp f76500ebdb67f131a57a3b5aaae8c952d019e354 > > > Diff: https://reviews.apache.org/r/66143/diff/4/ > > > Testing > ------- > > make check > > > Thanks, > > Meng Zhu > >
