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 Review Request 46470: Change to explicit case statements (`UNKNOWN`) for authorization.
Date Thu, 21 Apr 2016 02:27:25 GMT

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

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


Bugs: MESOS-5031
    https://issues.apache.org/jira/browse/MESOS-5031


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/45342/ (MESOS-5031)


Diffs
-----

  src/authorizer/local/authorizer.cpp c744a16041c2466d3839a37fbee2bf86887bf4e1 

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


Testing
-------

make check (Ubuntu 14.04)


Thanks,

Yong Tang


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