mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yong Tang <yong.tang.git...@outlook.com>
Subject Re: Review Request 46364: Change to explicit case statements (`UNKNOWN`) instead of default.
Date Fri, 22 Apr 2016 05:28:57 GMT

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

(Updated April 22, 2016, 5:28 a.m.)


Review request for mesos, Adam B, Ben Mahler, and Vinod Kone.


Changes
-------

Update review request.


Bugs: MESOS-5014 and MESOS-5015
    https://issues.apache.org/jira/browse/MESOS-5014
    https://issues.apache.org/jira/browse/MESOS-5015


Repository: mesos


Description
-------

This patch changes from `default` statement to explicit case
statement (`UNKNOWN`) so that complier could help catching all
switches when new enums are introduced in the future.

This patch is related to:
https://reviews.apache.org/r/45317/ (MESOS-5014)
https://reviews.apache.org/r/45304/ (MESOS-5015)


Diffs (updated)
-----

  src/cli/execute.cpp 087a73143d739f41638b8335c7e24dfcd14bc7fb 
  src/examples/long_lived_executor.cpp ebb9cbf578d79fd87ac51ea85575950b7c0a1504 
  src/examples/long_lived_framework.cpp c696ccb6b2ace6e047f6509b291dd14be240cf70 
  src/examples/test_http_executor.cpp ceb489d43f35d24c8a7f5fbb0148529745ee357a 
  src/examples/test_http_framework.cpp 8cc3107034d46cb6a2966835f509508223c6e674 
  src/launcher/http_command_executor.cpp 9dfe48108cababeb2d4a6af74434880d79245c21 
  src/master/http.cpp de06985cafc93022fffc0d13812a119ae43b7e57 
  src/master/master.cpp 6dacf5fbd73771e5c31ffb0e8723cd2905dcefb3 
  src/master/validation.cpp 0cd118ee4f89f749a063f6ba7f419d5a220dc1d4 
  src/sched/sched.cpp 5393f0de655d03ac1a31b3144d4d764d4aeb56fb 
  src/slave/http.cpp f887a71684304a82ff0d81dbd240e29aa7e2ac67 
  src/slave/validation.cpp ec1a4b6d9c55ab0c9894d5a49e290e15dee32c22 
  src/tests/mesos.hpp e4b63d41d883807ac39846799468b80e88c84e0b 

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


Testing
-------

make check (Ubuntu 14.04)


Thanks,

Yong Tang


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