You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/11/04 02:30:03 UTC

svn commit: r1405468 - /incubator/mesos/branches/0.10.0/src/detector/detector.cpp

Author: benh
Date: Sun Nov  4 01:30:03 2012
New Revision: 1405468

URL: http://svn.apache.org/viewvc?rev=1405468&view=rev
Log:
Removed unused variable from ZooKeeperMasterDetector
(https://reviews.apache.org/r/7392).

Modified:
    incubator/mesos/branches/0.10.0/src/detector/detector.cpp

Modified: incubator/mesos/branches/0.10.0/src/detector/detector.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/branches/0.10.0/src/detector/detector.cpp?rev=1405468&r1=1405467&r2=1405468&view=diff
==============================================================================
--- incubator/mesos/branches/0.10.0/src/detector/detector.cpp (original)
+++ incubator/mesos/branches/0.10.0/src/detector/detector.cpp Sun Nov  4 01:30:03 2012
@@ -104,9 +104,6 @@ private:
   bool expire;
   Option<Timer> timer;
 
-  // Our sequence string if contending to be a master.
-  Option<string> mySeq;
-
   string currentMasterSeq;
   UPID currentMasterPID;
 };
@@ -346,16 +343,7 @@ void ZooKeeperMasterDetectorProcess::con
                    << "' in ZooKeeper: %s" << zk->message(code);
       }
 
-      // Save the sequence id but only grab the basename, e.g.,
-      // "/path/to/znode/000000131" => "000000131".
-      size_t index;
-      if ((index = result.find_last_of('/')) != string::npos) {
-        mySeq = result.erase(0, index + 1);
-      } else {
-        mySeq = result;
-      }
-
-      LOG(INFO) << "Created ephemeral/sequence:" << mySeq.get();
+      LOG(INFO) << "Created ephemeral/sequence znode at '" << result << "'";
     }
 
     // Now determine who the master is (it may be us).