Remove the duplicated definition of _add_to_threadpool

Method _add_to_threadpool is defined repeated in both cinder.volume.Manager
class and cinder.manager.SchedulerDependentManager class. Actually,
SchedulerDependentManager is the parent class of Manager. Therefore,
there's no need to redefine the method again. This patch removes the
duplicated definition of the method in cinder.volume.Manager.

Change-Id: I809fbd2dd8704cce1e2e3eb0c419740ee549b0a6
Closes-Bug: #1588200
This commit is contained in:
wuyuting 2016-06-02 03:48:13 -04:00
parent cfbb5bde4d
commit b47ca6377e
1 changed files with 0 additions and 3 deletions

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: