Skip to content

Commit cdf10cc

Browse files
Edison SuEdison Su
authored andcommitted
bug 13771: Long.equals is not ==
status 13771: resolved fixed Reviewed-by: anthony
1 parent 2e82439 commit cdf10cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public SnapshotVO createSnapshotOnPrimary(VolumeVO volume, Long policyId, Long s
334334
}
335335

336336
//If the volume is moved around, backup a full snapshot to secondary storage
337-
if (volume.getLastPoolId() != null && volume.getPoolId() != volume.getLastPoolId()) {
337+
if (volume.getLastPoolId() != null && !volume.getLastPoolId().equals(volume.getPoolId())) {
338338
preSnapshotId = 0;
339339
volume.setLastPoolId(volume.getPoolId());
340340
}

0 commit comments

Comments
 (0)