mirror of https://github.com/apache/cloudstack.git
should not duplicate vm instance id, during the volume migration
Conflicts: engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
This commit is contained in:
parent
ffdb38c496
commit
885bba926c
|
|
@ -594,8 +594,11 @@ public class VolumeDaoImpl extends GenericDaoBase<VolumeVO, Long> implements Vol
|
|||
VolumeVO srcVol = findById(srcVolId);
|
||||
VolumeVO destVol = findById(destVolId);
|
||||
String uuid = srcVol.getUuid();
|
||||
Long instanceId = srcVol.getInstanceId();
|
||||
srcVol.setUuid(null);
|
||||
srcVol.setInstanceId(null);
|
||||
destVol.setUuid(uuid);
|
||||
destVol.setInstanceId(instanceId);
|
||||
update(srcVolId, srcVol);
|
||||
update(destVolId, destVol);
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -830,6 +830,7 @@ public class VolumeServiceImpl implements VolumeService {
|
|||
}
|
||||
|
||||
VolumeVO newVol = new VolumeVO(volume);
|
||||
newVol.setInstanceId(null);
|
||||
newVol.setPoolId(pool.getId());
|
||||
newVol.setFolder(folder);
|
||||
newVol.setPodId(pool.getPodId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue