Repository: mesos
Updated Branches:
  refs/heads/master ab6afe86d -> 3f5b2c90c


Changed 'Principal.claims' to a hashmap.

This patch changes the `claims` member of the authentication
`Principal` struct from a `std::map` to a `hashmap`, so that
we can make use of the `contains()` helper during authorization.

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


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

Branch: refs/heads/master
Commit: 6d06388039f060dd091f543c0f83a2a205b39ae7
Parents: ab6afe8
Author: Greg Mann <[email protected]>
Authored: Fri Apr 21 10:45:09 2017 -0700
Committer: Vinod Kone <[email protected]>
Committed: Fri Apr 21 10:45:09 2017 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/authenticator.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/6d063880/3rdparty/libprocess/include/process/authenticator.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/authenticator.hpp 
b/3rdparty/libprocess/include/process/authenticator.hpp
index 272d921..2a59081 100644
--- a/3rdparty/libprocess/include/process/authenticator.hpp
+++ b/3rdparty/libprocess/include/process/authenticator.hpp
@@ -47,7 +47,7 @@ struct Principal
 
   Principal(
       const Option<std::string>& _value,
-      const std::map<std::string, std::string>& _claims)
+      const hashmap<std::string, std::string>& _claims)
     : value(_value), claims(_claims) {}
 
   bool operator==(const Principal& that) const
@@ -66,7 +66,7 @@ struct Principal
   }
 
   Option<std::string> value;
-  std::map<std::string, std::string> claims;
+  hashmap<std::string, std::string> claims;
 };
 
 

Reply via email to