From cdf10ccc2e4e32d677f9ffedd88af5d08aeb05ec Mon Sep 17 00:00:00 2001 From: Edison Su Date: Thu, 16 Feb 2012 17:01:08 -0800 Subject: [PATCH] bug 13771: Long.equals is not == status 13771: resolved fixed Reviewed-by: anthony --- server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index 0ede8d04fdb..0ffec94516a 100755 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -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()); }