You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2016/08/25 23:11:44 UTC
mesos git commit: Use `continue` when breaking out of LAUNCH_GROUP
case due to errors.
Repository: mesos
Updated Branches:
refs/heads/master 646eee3e6 -> b621126c4
Use `continue` when breaking out of LAUNCH_GROUP case due to errors.
This is the convention established by the rest of the switch cases in
`_accept()` and it will allow some common code to be put below the
switch statementh for each *valid* operation.
Review: https://reviews.apache.org/r/51434
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b621126c
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b621126c
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b621126c
Branch: refs/heads/master
Commit: b621126c4d6b851eaa07cf2a6716c6426f669bbf
Parents: 646eee3
Author: Jiang Yan Xu <xu...@apple.com>
Authored: Thu Aug 25 10:55:55 2016 -0700
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Thu Aug 25 16:10:16 2016 -0700
----------------------------------------------------------------------
src/master/master.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/b621126c/src/master/master.cpp
----------------------------------------------------------------------
diff --git a/src/master/master.cpp b/src/master/master.cpp
index 789fb97..5c00f33 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -3994,7 +3994,7 @@ void Master::_accept(
forward(update, UPID(), framework);
}
- break;
+ continue;
}
// Remove all the tasks from being pending. If any of the tasks
@@ -4039,7 +4039,7 @@ void Master::_accept(
}
}
- break;
+ continue;
}
// Now launch the task group!