Merge "Fix incorrect invocation of _add_to_threadpool"

This commit is contained in:
Jenkins
2015-04-05 01:12:31 +00:00
committed by Gerrit Code Review

View File

@@ -379,8 +379,8 @@ class VolumeManager(manager.SchedulerDependentManager):
# Offload all the pending volume delete operations to the
# threadpool to prevent the main volume service thread
# from being blocked.
self._add_to_threadpool(self.delete_volume(ctxt,
volume['id']))
self._add_to_threadpool(self.delete_volume, ctxt,
volume['id'])
else:
# By default, delete volumes sequentially
self.delete_volume(ctxt, volume['id'])