mirror of https://github.com/apache/cloudstack.git
bug 13771: Long.equals is not ==
status 13771: resolved fixed Reviewed-by: anthony
This commit is contained in:
parent
2e82439a53
commit
cdf10ccc2e
|
|
@ -334,7 +334,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
|
|||
}
|
||||
|
||||
//If the volume is moved around, backup a full snapshot to secondary storage
|
||||
if (volume.getLastPoolId() != null && volume.getPoolId() != volume.getLastPoolId()) {
|
||||
if (volume.getLastPoolId() != null && !volume.getLastPoolId().equals(volume.getPoolId())) {
|
||||
preSnapshotId = 0;
|
||||
volume.setLastPoolId(volume.getPoolId());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue