mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject [5/7] mesos git commit: Populated `recovered_agents` field in the `GetAgents` response.
Date Tue, 03 Jan 2017 19:39:04 GMT
Populated `recovered_agents` field in the `GetAgents` response.

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


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

Branch: refs/heads/master
Commit: 5e2d129623fe47fffd95dc77a2eb75fb8dccec13
Parents: 5815c94
Author: Zhitao Li <zhitaoli.cs@gmail.com>
Authored: Tue Jan 3 10:23:33 2017 -0800
Committer: Anand Mazumdar <anand@apache.org>
Committed: Tue Jan 3 11:38:21 2017 -0800

----------------------------------------------------------------------
 src/master/http.cpp | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/5e2d1296/src/master/http.cpp
----------------------------------------------------------------------
diff --git a/src/master/http.cpp b/src/master/http.cpp
index ee55980..4939391 100644
--- a/src/master/http.cpp
+++ b/src/master/http.cpp
@@ -2316,6 +2316,10 @@ mesos::master::Response::GetAgents Master::Http::_getAgents() const
     agent->CopyFrom(protobuf::master::event::createAgentResponse(*slave));
   }
 
+  foreachvalue (const SlaveInfo& slaveInfo, master->slaves.recovered) {
+    getAgents.add_recovered_agents()->CopyFrom(slaveInfo);
+  }
+
   return getAgents;
 }
 


Mime
View raw message