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

Review request for mesos and Benjamin Hindman.


Repository: mesos-git


Description
-------

Previously, only optional fields which where explicitly set would be serialized 
regardless whether default values was present.
This patch adds those fields explicitly.


Diffs
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/protobuf.hpp ddc13e9 
  3rdparty/libprocess/3rdparty/stout/tests/protobuf_tests.cpp d1a58fc 
  3rdparty/libprocess/3rdparty/stout/tests/protobuf_tests.pb.h 75a3919 
  3rdparty/libprocess/3rdparty/stout/tests/protobuf_tests.pb.cc 169e177 
  3rdparty/libprocess/3rdparty/stout/tests/protobuf_tests.proto 2c38489 

Diff: https://reviews.apache.org/r/21246/diff/


Testing
-------

Protobuf test case has been expanded with
1) Optional field _without_ default value -> should not be serialized.
2) Optional field _with_ default value -> *should* be serialized

make check


Thanks,

Niklas Nielsen

Reply via email to