From ec62ef3cd7e42d6d96c4cd4acf1123935d622f5e Mon Sep 17 00:00:00 2001 From: Kris McQueen Date: Wed, 6 Oct 2010 18:25:58 -0700 Subject: [PATCH] Injection doesn't work on private methods, restore the visibility of the methods so injection works. --- .../src/com/cloud/storage/snapshot/SnapshotManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index 050bfd3ce1c..2ad356fdb6f 100644 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -508,7 +508,7 @@ public class SnapshotManagerImpl implements SnapshotManager { } @DB - private boolean backupSnapshotToSecondaryStorage(SnapshotVO snapshot) { + public boolean backupSnapshotToSecondaryStorage(SnapshotVO snapshot) { Long userId = UserContext.current().getUserId(); long id = snapshot.getId(); @@ -702,7 +702,7 @@ public class SnapshotManagerImpl implements SnapshotManager { } @DB - private void postCreateSnapshot(long volumeId, long snapshotId, List policyIds, boolean backedUp) { + protected void postCreateSnapshot(long volumeId, long snapshotId, List policyIds, boolean backedUp) { Long userId = UserContext.current().getUserId(); // Update the snapshot_policy_ref table with the created snapshot // Get the list of policies for this snapshot