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/10/04 01:37:42 UTC
svn commit: r1393825 - /incubator/mesos/trunk/src/detector/detector.cpp
Author: benh
Date: Wed Oct 3 23:37:42 2012
New Revision: 1393825
URL: http://svn.apache.org/viewvc?rev=1393825&view=rev
Log:
Removed unused variable from ZooKeeperMasterDetector
(https://reviews.apache.org/r/7392).
Modified:
incubator/mesos/trunk/src/detector/detector.cpp
Modified: incubator/mesos/trunk/src/detector/detector.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/detector/detector.cpp?rev=1393825&r1=1393824&r2=1393825&view=diff
==============================================================================
--- incubator/mesos/trunk/src/detector/detector.cpp (original)
+++ incubator/mesos/trunk/src/detector/detector.cpp Wed Oct 3 23:37:42 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).