Merge "Remove the duplicated definition of _add_to_threadpool"

This commit is contained in:
Jenkins 2016-06-02 18:12:13 +00:00 committed by Gerrit Code Review
commit 939beef8fc

View File

@ -319,9 +319,6 @@ class VolumeManager(manager.SchedulerDependentManager):
{'host': self.host})
self.image_volume_cache = None
def _add_to_threadpool(self, func, *args, **kwargs):
self._tp.spawn_n(func, *args, **kwargs)
def _count_allocated_capacity(self, ctxt, volume):
pool = vol_utils.extract_host(volume['host'], 'pool')
if pool is None: