From 8e9a2ac7fe19ca8319b27b4cf779b255926033a0 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Fri, 28 Sep 2012 18:40:49 +0000 Subject: 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 --- nova/compute/manager.py | 3 +-- 1 file changed, 1 insertion(+), 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. -- cgit