> On Sept. 30, 2016, 5:20 p.m., Benjamin Hindman wrote:
> > src/slave/containerizer/mesos/paths.cpp, lines 46-64
> > <https://reviews.apache.org/r/52415/diff/1/?file=1516703#file1516703line46>
> >
> >     I think the code is fine, but suggestion on simplifying:
> >     
> >     const string path = buildPath(containerId.parent(), separator, mode);
> >     
> >     switch (mode) {
> >       case PREFIX:
> >       case JOIN: return path::join(path, seperator, containerId.value());
> >       case SUFFIX: return path::join(path, containerId.value(), separator);
> >       default: UNREACHABLE();
> >     }
> 
> Jie Yu wrote:
>     You need termination condition for the recursion.
> 
> Benjamin Hindman wrote:
>     The termination condition is the previous code that you already have, 
> that's why I didn't highlight that part of the code.

Oh, ic. Didn't notice that. Let me follow up with a patch.


- Jie


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52415/#review151038
-----------------------------------------------------------


On Sept. 30, 2016, 5:14 a.m., Jie Yu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52415/
> -----------------------------------------------------------
> 
> (Updated Sept. 30, 2016, 5:14 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman and Kevin Klues.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Extended buildPath to support more modes.
> 
> 
> Diffs
> -----
> 
>   src/Makefile.am f093000e0282a8d5ac17e7ba33711690ccdfe68a 
>   src/slave/containerizer/mesos/linux_launcher.cpp 
> 1bce077e4aa97425b9cbdf8576a5dd52851c044e 
>   src/slave/containerizer/mesos/paths.hpp 
> 1051c219c55253d03199045b6d2f43377ae93e53 
>   src/slave/containerizer/mesos/paths.cpp 
> 6c6b4dcc39fbc00485552caab88457918e622e08 
>   src/tests/containerizer/mesos_containerizer_paths_tests.cpp PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/52415/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Jie Yu
> 
>

Reply via email to