Send CopyCommand to Host instead of randomly picking host and ssvm in

backup snapshot. For VMware, it will delegate to ssvm in VMwareGuru.
This commit is contained in:
Min Chen 2013-06-13 11:21:25 -07:00
parent 6e0757bbf5
commit 7a3e7d1891
1 changed files with 1 additions and 3 deletions

View File

@ -55,8 +55,6 @@ public class DefaultEndPointSelector implements EndPointSelector {
private static final Logger s_logger = Logger.getLogger(DefaultEndPointSelector.class);
@Inject
HostDao hostDao;
private String findOneHostInaScope = "select id from host where "
+ " status = 'Up' and type in ('Routing', 'SecondaryStorageVM') ";
private String findOneHostOnPrimaryStorage = "select id from host where " + "status = 'Up' and type = 'Routing' ";
protected boolean moveBetweenPrimaryImage(DataStore srcStore, DataStore destStore) {
@ -158,7 +156,7 @@ public class DefaultEndPointSelector implements EndPointSelector {
// if both are zone scope
selectedScope = srcScope;
}
return findEndPointInScope(selectedScope, findOneHostInaScope);
return findEndPointInScope(selectedScope, findOneHostOnPrimaryStorage);
}
@Override