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

Review request for mesos, Chun-Hung Hsiao and Jan Schlicht.


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


Repository: mesos


Description
-------

The handling of offer operation updates introduced in `c946615ec6d`
made use of an update's `latest_status` without makeing sure that any
value was set. This could leave to situation where an uninitialized
enum value was switched on would would have caused a fatal error at
runtime.

This patch replaces uses of `latest_status` with `state` which does
contain the information we care about. We also adjust the error
logging so we log the value that lead to the error, not some other
value.


Diffs
-----

  src/slave/slave.cpp 7bb2b291a7b67563adf88bcedca1392890f17ffe 


Diff: https://reviews.apache.org/r/69157/diff/1/


Testing
-------

`make check`


Thanks,

Benjamin Bannier

Reply via email to