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 2014/01/23 20:53:44 UTC

git commit: Minor fix to make Slave::detected() public for testing.

Updated Branches:
  refs/heads/master 80676beac -> 13296e4ec


Minor fix to make Slave::detected() public for testing.

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


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

Branch: refs/heads/master
Commit: 13296e4ec624811bc63c2884530bade76a319e14
Parents: 80676be
Author: Vinod Kone <vi...@twitter.com>
Authored: Thu Jan 23 11:44:24 2014 -0800
Committer: Vinod Kone <vi...@twitter.com>
Committed: Thu Jan 23 11:44:55 2014 -0800

----------------------------------------------------------------------
 src/slave/slave.hpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/13296e4e/src/slave/slave.hpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.hpp b/src/slave/slave.hpp
index 38ba7b6..b8acc18 100644
--- a/src/slave/slave.hpp
+++ b/src/slave/slave.hpp
@@ -204,6 +204,10 @@ public:
   // exited.
   void shutdownExecutor(Framework* framework, Executor* executor);
 
+  // Invoked whenever the detector detects a change in masters.
+  // Made public for testing purposes.
+  void detected(const Future<Option<UPID> >& pid);
+
   enum State {
     RECOVERING,   // Slave is doing recovery.
     DISCONNECTED, // Slave is not connected to the master.
@@ -223,9 +227,6 @@ public:
 
   Nothing detachFile(const std::string& path);
 
-  // Invoked whenever the detector detects a change in masters.
-  void detected(const Future<Option<UPID> >& pid);
-
   // Helper routine to lookup a framework.
   Framework* getFramework(const FrameworkID& frameworkId);