mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Reverted commit made by mistake
This reverts commit bd40212c3b5e885f89d7b43a6e8ccc14fb6d19fb.
This commit is contained in:
parent
b9ebc5ad16
commit
7cd9f2d022
@ -222,18 +222,6 @@ public class ClusteredAgentAttache extends ConnectedAgentAttache implements Rout
|
||||
assert (index < 0) : "How can we get index again? " + index + ":" + req.toString();
|
||||
_transferRequests.add(-index - 1, req);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
//need separate method in order to cancel transfer requests
|
||||
protected synchronized int findRequest(long seq) {
|
||||
int result = Collections.binarySearch(_transferRequests, seq, s_seqComparator);
|
||||
if (result < 0) {
|
||||
return Collections.binarySearch(_requests, seq, s_seqComparator);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
protected synchronized int findTransferRequest(Request req) {
|
||||
return Collections.binarySearch(_transferRequests, req, s_reqComparator);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user