diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-09-28 18:40:49 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-09-28 18:40:49 +0000 |
| commit | 8e9a2ac7fe19ca8319b27b4cf779b255926033a0 (patch) | |
| tree | 7a5f56d96fe14092dcdbf697824e9aa02bf01740 | |
| parent | 64702669c879dbc5cf27712ef8fadb9fd043664d (diff) | |
Synchronize docstring with actual implementation
This method no longer calls eventlet.sleep(0) since it's implicit any
time a database connection is checked out (which is a few times each
loop in this method).
Change-Id: Iff3c2e0fb2f7a11092b4d25c03a20beb3b24c91e
| -rw-r--r-- | nova/compute/manager.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index e8b40731a..13c4b21c2 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -2578,8 +2578,7 @@ class ComputeManager(manager.SchedulerDependentManager): virtual machines known by the hypervisor and if the number matches the number of virtual machines known by the database, we proceed in a lazy loop, one database record at a time, checking if the hypervisor has the - same power state as is in the database. We call eventlet.sleep(0) after - each loop to allow the periodic task eventlet to do other work. + same power state as is in the database. If the instance is not found on the hypervisor, but is in the database, then a stop() API will be called on the instance. |
