You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/08/23 03:06:29 UTC
[3/3] mesos git commit: Fixed indentation in master/validation.cpp.
Fixed indentation in master/validation.cpp.
Review: https://reviews.apache.org/r/51247
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/47f2c218
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/47f2c218
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/47f2c218
Branch: refs/heads/master
Commit: 47f2c2187bffe79d9d05085f403b9087154d6618
Parents: 4000fd3
Author: Vinod Kone <vi...@gmail.com>
Authored: Mon Aug 15 16:12:26 2016 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Mon Aug 22 20:04:04 2016 -0700
----------------------------------------------------------------------
src/master/validation.cpp | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/47f2c218/src/master/validation.cpp
----------------------------------------------------------------------
diff --git a/src/master/validation.cpp b/src/master/validation.cpp
index ddc7ac3..19a63ea 100644
--- a/src/master/validation.cpp
+++ b/src/master/validation.cpp
@@ -534,8 +534,7 @@ Option<Error> validateTaskID(const TaskInfo& task)
// Validates that the TaskID does not collide with any existing tasks
// for the framework.
-Option<Error> validateUniqueTaskID(const TaskInfo& task, Framework*
- framework)
+Option<Error> validateUniqueTaskID(const TaskInfo& task, Framework* framework)
{
const TaskID& taskId = task.task_id();
@@ -563,7 +562,9 @@ Option<Error> validateSlaveID(const TaskInfo& task, Slave* slave)
// Validates that tasks that use the "same" executor (i.e., same
// ExecutorID) have an identical ExecutorInfo.
Option<Error> validateExecutorInfo(
- const TaskInfo& task, Framework* framework, Slave* slave)
+ const TaskInfo& task,
+ Framework* framework,
+ Slave* slave)
{
if (task.has_executor() == task.has_command()) {
return Error(
@@ -940,7 +941,8 @@ Option<Error> validateFramework(
// Validates that all offers belong to the same valid slave.
Option<Error> validateSlave(
- const RepeatedPtrField<OfferID>& offerIds, Master* master)
+ const RepeatedPtrField<OfferID>& offerIds,
+ Master* master)
{
Option<SlaveID> slaveId;