mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiang Yan Xu <...@jxu.me>
Subject Re: Review Request 50568: Updated -=/+= to subtract/add for resource object.
Date Thu, 04 Aug 2016 20:47:26 GMT


> On Aug. 1, 2016, 3:39 p.m., Jiang Yan Xu wrote:
> > Can we keep add/subtract private? The fact they were added to save some redudant
work suggests their `private` nature. Otherwise what if people use `add` directly instead
of `+=`?
> > 
> > Looks like they were changed to public just so it can be called from the free-standing
`convertJSON`, which is a private util method itself. We can just friend it right?
> 
> Benjamin Mahler wrote:
>     Making it private sounds good and having a friend sounds good.
> 
> Guangya Liu wrote:
>     Thanks Jinag Yan and Ben, I will follow up a patch later.

Hey Guangya have you started on it? If not we can take care of it because we'd like to also
consolidate `Resources::add(const Resource& r)` and `add(const Resource_& r);`


- Jiang Yan


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


On July 28, 2016, 6:34 p.m., Guangya Liu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/50568/
> -----------------------------------------------------------
> 
> (Updated July 28, 2016, 6:34 p.m.)
> 
> 
> Review request for mesos, Benjamin Mahler, Joris Van Remoortere, and Klaus Ma.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This is a follow up action for MESOS-5919. Based on the patch of
> https://reviews.apache.org/r/50553/ and
> https://reviews.apache.org/r/50557/ , we should update -=/+= to
> subtract/add if the resource object is from resources object.
> 
> 
> Diffs
> -----
> 
>   include/mesos/resources.hpp 88a9feabf66ed34e7e5b1c6cb7e831818e7f7883 
>   include/mesos/v1/resources.hpp 054ed00a03319ae5e350542add34f497eaf79152 
>   src/common/resources.cpp 3dbff24d6859d3b1ed8589cec50170a5202cfbcb 
>   src/v1/resources.cpp 3c85dc8aa8125962b44e60806ece83a7653d0dc7 
> 
> Diff: https://reviews.apache.org/r/50568/diff/
> 
> 
> Testing
> -------
> 
> make
> make check
> 
> 
> Thanks,
> 
> Guangya Liu
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message