aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject git commit: Avoid using protobuf equals() on OfferID.
Date Sun, 26 Jan 2014 01:00:51 GMT
Updated Branches:
  refs/heads/master e74290b81 -> 1925b817a


Avoid using protobuf equals() on OfferID.


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/1925b817
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/1925b817
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/1925b817

Branch: refs/heads/master
Commit: 1925b817a050a03f2005c48e6aa493406634a7dc
Parents: e74290b
Author: Bill Farner <wfarner@apache.org>
Authored: Sat Jan 25 16:51:12 2014 -0800
Committer: Bill Farner <wfarner@apache.org>
Committed: Sat Jan 25 16:57:51 2014 -0800

----------------------------------------------------------------------
 src/main/java/org/apache/aurora/scheduler/async/OfferQueue.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/1925b817/src/main/java/org/apache/aurora/scheduler/async/OfferQueue.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/aurora/scheduler/async/OfferQueue.java b/src/main/java/org/apache/aurora/scheduler/async/OfferQueue.java
index f7a8b0c..85bd0a6 100644
--- a/src/main/java/org/apache/aurora/scheduler/async/OfferQueue.java
+++ b/src/main/java/org/apache/aurora/scheduler/async/OfferQueue.java
@@ -220,7 +220,7 @@ public interface OfferQueue extends EventSubscriber {
       return Iterables.removeIf(hostOffers,
           new Predicate<HostOffer>() {
             @Override public boolean apply(HostOffer input) {
-              return input.offer.getId().equals(offerId);
+              return input.offer.getId().getValue().equals(offerId.getValue());
             }
           });
     }


Mime
View raw message