You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/10/12 02:12:30 UTC

mesos git commit: Refined a CHECK in `DRFSorter::activate`.

Repository: mesos
Updated Branches:
  refs/heads/master ca3d82165 -> b2beef37f


Refined a CHECK in `DRFSorter::activate`.

Review: https://reviews.apache.org/r/52767/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b2beef37
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b2beef37
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b2beef37

Branch: refs/heads/master
Commit: b2beef37f6f85a8c75e968136caa7a1f292ba20e
Parents: ca3d821
Author: Guangya Liu <gy...@gmail.com>
Authored: Tue Oct 11 19:11:53 2016 -0700
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Tue Oct 11 19:11:53 2016 -0700

----------------------------------------------------------------------
 src/master/allocator/sorter/drf/sorter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b2beef37/src/master/allocator/sorter/drf/sorter.cpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/sorter/drf/sorter.cpp b/src/master/allocator/sorter/drf/sorter.cpp
index 790c932..4ff1539 100644
--- a/src/master/allocator/sorter/drf/sorter.cpp
+++ b/src/master/allocator/sorter/drf/sorter.cpp
@@ -118,7 +118,7 @@ void DRFSorter::remove(const string& name)
 
 void DRFSorter::activate(const string& name)
 {
-  CHECK(allocations.contains(name));
+  CHECK(contains(name));
 
   set<Client, DRFComparator>::iterator it = find(name);
   if (it == clients.end()) {