Fixed CLOUDSTACK-2189 Volume is stuck in resizing state

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
This commit is contained in:
Rajesh Battala 2013-05-06 17:53:01 +05:30 committed by Sateesh Chodapuneedi
parent 78ffb7ae5e
commit 756a4179e2
1 changed files with 2 additions and 3 deletions

View File

@ -772,9 +772,8 @@ public class VolumeServiceImpl implements VolumeService {
return future;
}
CreateVolumeContext<VolumeApiResult> context = new CreateVolumeContext<VolumeApiResult>(null, volume, future);
AsyncCallbackDispatcher<VolumeServiceImpl, CreateCmdResult> caller = AsyncCallbackDispatcher.create(this);
caller.setCallback(caller.getTarget().registerVolumeCallback(null, null))
.setContext(context);
AsyncCallbackDispatcher<VolumeServiceImpl, CreateCmdResult> caller = AsyncCallbackDispatcher.create(this);
caller.setCallback(caller.getTarget().resizeVolumeCallback(caller, context)).setContext(context);
volume.getDataStore().getDriver().resize(volume, caller);
return future;
}