diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-11-19 22:22:06 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-11-19 22:22:06 +0000 |
commit | fa18112538a61d71b60e08dca27af1b7ae30a6d4 (patch) | |
tree | 5a7e19c7f33df3f803bbd6574a1aebb088db239b | |
parent | 4104866648a18ce2bec5440d2c967826fe122ae0 (diff) | |
parent | f2d5869d8c83cf420fc29cecbefc42d2d2f65839 (diff) | |
download | nova-fa18112538a61d71b60e08dca27af1b7ae30a6d4.tar.gz nova-fa18112538a61d71b60e08dca27af1b7ae30a6d4.tar.xz nova-fa18112538a61d71b60e08dca27af1b7ae30a6d4.zip |
Merge "Yield in between hash runs for the image cache manager."
-rw-r--r-- | nova/virt/libvirt/imagecache.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/virt/libvirt/imagecache.py b/nova/virt/libvirt/imagecache.py index 793044477..7256dcdb0 100644 --- a/nova/virt/libvirt/imagecache.py +++ b/nova/virt/libvirt/imagecache.py @@ -311,6 +311,9 @@ class ImageCacheManager(object): if not checksum_result is None: image_bad = not checksum_result + # Give other threads a chance to run + time.sleep(0) + instances = [] if img_id in self.used_images: local, remote, instances = self.used_images[img_id] |