~openstack-charmers-next/charms/wily/glance/trunk

Viewing all changes in revision 191.

  • Committer: Alex Kavanagh
  • Date: 2016-06-05 12:57:53 UTC
  • Revision ID: alex@ajkavanagh.co.uk-20160605125753-l5v09hqdx6xuech8
Fix for status-set race - related to bug 1588462

This change fixes the obvious race for a status_set() between
check_optional_interfaces() and assess_status() as the later calls the former
which calls status_set(), returns the status, which is then potentially set
again by the assess_status() function.  This cleans up the code so that only a
single status_set() is performed when calling assess_status().

Change-Id: I06efbcaade8f0c99b5931104e6887d24cb10e35a
Related-Bug:#1588462

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: