mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-4754: it's a race condition: delete template, and deploy vm from the template happened at the same time,
This commit is contained in:
parent
f3c917db05
commit
350e8938cf
@ -41,6 +41,9 @@ public class DataMotionServiceImpl implements DataMotionService {
|
||||
|
||||
@Override
|
||||
public void copyAsync(DataObject srcData, DataObject destData, AsyncCompletionCallback<CopyCommandResult> callback) {
|
||||
if (srcData.getDataStore() == null || destData.getDataStore() == null) {
|
||||
throw new CloudRuntimeException("can't find data store");
|
||||
}
|
||||
|
||||
if (srcData.getDataStore().getDriver().canCopy(srcData, destData)) {
|
||||
srcData.getDataStore().getDriver().copyAsync(srcData, destData, callback);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user