diff options
| author | Eoghan Glynn <eglynn@redhat.com> | 2012-08-08 16:45:11 +0100 |
|---|---|---|
| committer | Eoghan Glynn <eglynn@redhat.com> | 2012-08-09 22:30:37 +0100 |
| commit | aaccb0a97930b3b7ca8e80ede21c46ae084c4fc6 (patch) | |
| tree | 6294cf1f7bce16e5e3d7e6aeff3c6d36db66ab2b /nova/openstack | |
| parent | c60e2e8f30ced68c24ef9af75bd429a7529f353d (diff) | |
| download | nova-aaccb0a97930b3b7ca8e80ede21c46ae084c4fc6.tar.gz nova-aaccb0a97930b3b7ca8e80ede21c46ae084c4fc6.tar.xz nova-aaccb0a97930b3b7ca8e80ede21c46ae084c4fc6.zip | |
Avoid double-reduction of quota for repeated delete.
Previously when an instance delete is repeated while a
delete is already in progress, the relevant quota usages
were reduced twice.
This is already healing logic in place to catch the special
case where these counts fall below zero, in which case the
sync method re-calculates the appropriate in-use count.
However this will only help the case at hand when the instance
count is itself trending towards zero, and not in general when
there's a healthy number of active instances.
Now we check the instance task state before making the quota
usage reduction.
Change-Id: I91a70ada01dbe050471da43d66774686782584ad
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
