summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-03-11 11:24:22 +0100
committerSoren Hansen <soren@linux2go.dk>2011-03-11 11:24:22 +0100
commit46d1f6a8c888c1f6fdf12cf26df67eada1e8505b (patch)
tree7e7dee2ac8ec747b4572ac7675ac62c12d9fe47d /nova/exception.py
parent1d6b4e8d74825790f2c20ddceae52f88ae094d82 (diff)
downloadnova-46d1f6a8c888c1f6fdf12cf26df67eada1e8505b.tar.gz
nova-46d1f6a8c888c1f6fdf12cf26df67eada1e8505b.tar.xz
nova-46d1f6a8c888c1f6fdf12cf26df67eada1e8505b.zip
Use self.instances.pop in unfilter_instance to make the check/removal atomic.
Move the semaphore grab outside the for loop in refresh_security_group_rules to avoid reading a value from self.instances, blocking waiting for the semaphore, having the instance be removed in the mean time, and then add its rules back.
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions