mirror of https://github.com/apache/cloudstack.git
Merge pull request #2007 from Accelerite/CLOUDSTACK-9834
CLOUDSTACK-9834: prepareTemplate API call doesn't work well with XenServer & Local SR (Db_exn.Uniqueness_constraint_violation)
This commit is contained in:
commit
d9f91ee2f9
|
|
@ -99,7 +99,7 @@ public class Xenserver625StorageProcessor extends XenServerStorageProcessor {
|
|||
PBD pbd = null;
|
||||
|
||||
try {
|
||||
final String srname = hypervisorResource.getHost().getUuid() + path.trim();
|
||||
final String srname = path.trim();
|
||||
synchronized (srname.intern()) {
|
||||
final Set<SR> srs = SR.getByNameLabel(conn, srname);
|
||||
if (srs != null && !srs.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue