Skip to content

Commit 7a3e7d1

Browse files
committed
Send CopyCommand to Host instead of randomly picking host and ssvm in
backup snapshot. For VMware, it will delegate to ssvm in VMwareGuru.
1 parent 6e0757b commit 7a3e7d1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ public class DefaultEndPointSelector implements EndPointSelector {
5555
private static final Logger s_logger = Logger.getLogger(DefaultEndPointSelector.class);
5656
@Inject
5757
HostDao hostDao;
58-
private String findOneHostInaScope = "select id from host where "
59-
+ " status = 'Up' and type in ('Routing', 'SecondaryStorageVM') ";
6058
private String findOneHostOnPrimaryStorage = "select id from host where " + "status = 'Up' and type = 'Routing' ";
6159

6260
protected boolean moveBetweenPrimaryImage(DataStore srcStore, DataStore destStore) {
@@ -158,7 +156,7 @@ protected EndPoint findEndPointForImageMove(DataStore srcStore, DataStore destSt
158156
// if both are zone scope
159157
selectedScope = srcScope;
160158
}
161-
return findEndPointInScope(selectedScope, findOneHostInaScope);
159+
return findEndPointInScope(selectedScope, findOneHostOnPrimaryStorage);
162160
}
163161

164162
@Override

0 commit comments

Comments
 (0)