Repository: mesos
Updated Branches:
  refs/heads/master 4be93ab2c -> 65bf0f81f


Moved repeated labels to Labels message.

We suggested to change hooks into manipulating task labels only. With
that in mind and based on BenH's suggestion originally, this patch set
wraps the repeated Labels field in a message when can be used without
referring to repeated field types.

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


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

Branch: refs/heads/master
Commit: c3bdaf989ba5f407ea2074175d9c3ea48bf0f061
Parents: 4be93ab
Author: Niklas Nielsen <[email protected]>
Authored: Wed Dec 3 16:36:54 2014 -0800
Committer: Niklas Q. Nielsen <[email protected]>
Committed: Wed Dec 3 17:11:21 2014 -0800

----------------------------------------------------------------------
 include/mesos/mesos.proto | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c3bdaf98/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index e0b6375..540071d 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -636,7 +636,7 @@ message TaskInfo {
   // acted upon by Mesos itself. As opposed to the data field, labels
   // will be kept in memory on master and slave processes. Therefore,
   // labels should be used to tag tasks with light-weight meta-data.
-  repeated Label labels = 10;
+  optional Labels labels = 10;
 }
 
 
@@ -974,6 +974,15 @@ message ContainerInfo {
   optional DockerInfo docker = 3;
 }
 
+
+/**
+ * Collection of labels.
+ */
+message Labels {
+    repeated Label labels = 1;
+}
+
+
 /**
  * Key, value pair used to store free form user-data.
  */

Reply via email to