bug 10856: On account delete the snapshots were not getting deleted from secondary storage. This was happenning because we were passing incorrect folder path of the snapshot.

This commit is contained in:
Nitin 2011-09-14 18:55:00 +05:30
parent 01ac82d9d6
commit cc1c6347da
1 changed files with 1 additions and 1 deletions

View File

@ -6352,7 +6352,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
}
protected boolean deleteSnapshotsDir(Connection conn, Long dcId, Long accountId, Long volumeId, String secondaryStorageMountPath) {
return deleteSecondaryStorageFolder(conn, secondaryStorageMountPath, dcId.toString() + "/" + accountId.toString() + "/" + volumeId.toString());
return deleteSecondaryStorageFolder(conn, secondaryStorageMountPath, "snapshots" + "/" + accountId.toString() + "/" + volumeId.toString());
}