bug 13771: Long.equals is not ==

status 13771: resolved fixed
Reviewed-by: anthony
This commit is contained in:
Edison Su 2012-02-16 17:01:08 -08:00
parent 2e82439a53
commit cdf10ccc2e
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}