mirror of https://github.com/apache/cloudstack.git
Merge dc7c20df54 into cd5bb09d0d
This commit is contained in:
commit
cc3a8cf34c
|
|
@ -280,7 +280,7 @@ public class SecondaryStorageServiceImpl implements SecondaryStorageService {
|
|||
private void updateDataObject(DataObject srcData, DataObject destData) {
|
||||
if (destData instanceof SnapshotInfo) {
|
||||
SnapshotDataStoreVO snapshotStore = snapshotStoreDao.findBySourceSnapshot(srcData.getId(), DataStoreRole.Image);
|
||||
SnapshotDataStoreVO destSnapshotStore = snapshotStoreDao.findByStoreSnapshot(DataStoreRole.Image, srcData.getDataStore().getId(), srcData.getId());
|
||||
SnapshotDataStoreVO destSnapshotStore = snapshotStoreDao.findByStoreSnapshot(DataStoreRole.Image, destData.getDataStore().getId(), destData.getId());
|
||||
if (snapshotStore != null && destSnapshotStore != null) {
|
||||
destSnapshotStore.setPhysicalSize(snapshotStore.getPhysicalSize());
|
||||
destSnapshotStore.setCreated(snapshotStore.getCreated());
|
||||
|
|
|
|||
Loading…
Reference in New Issue