You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2016/11/16 12:28:46 UTC

mesos git commit: Added a comment about deprecation cycle of quota get authz.

Repository: mesos
Updated Branches:
  refs/heads/master 558e5ecb4 -> c333f4bef


Added a comment about deprecation cycle of quota get authz.


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

Branch: refs/heads/master
Commit: c333f4befe309316b8dbbd66c66e910e9b49aa0e
Parents: 558e5ec
Author: Alexander Rukletsov <al...@apache.org>
Authored: Wed Nov 16 13:28:31 2016 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Wed Nov 16 13:28:31 2016 +0100

----------------------------------------------------------------------
 src/master/quota_handler.cpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c333f4be/src/master/quota_handler.cpp
----------------------------------------------------------------------
diff --git a/src/master/quota_handler.cpp b/src/master/quota_handler.cpp
index 86d5a77..5578663 100644
--- a/src/master/quota_handler.cpp
+++ b/src/master/quota_handler.cpp
@@ -543,6 +543,8 @@ Future<bool> Master::QuotaHandler::authorizeGetQuota(
     request.mutable_subject()->set_value(principal.get());
   }
 
+  // TODO(alexr): The `value` field is set for backwards compatibility
+  // reasons until after the deprecation cycle started with 1.2.0 ends.
   request.mutable_object()->mutable_quota_info()->CopyFrom(quotaInfo);
   request.mutable_object()->set_value(quotaInfo.role());