From b47ca6377e77e409448e58fe0350241dae6ff181 Mon Sep 17 00:00:00 2001 From: wuyuting Date: Thu, 2 Jun 2016 03:48:13 -0400 Subject: [PATCH] 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 --- cinder/volume/manager.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index 36daaa502f1..7916b646454 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -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: