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 2011/06/05 07:27:21 UTC

svn commit: r1131767 - /incubator/mesos/trunk/src/master_detector.cpp

Author: benh
Date: Sun Jun  5 05:27:21 2011
New Revision: 1131767

URL: http://svn.apache.org/viewvc?rev=1131767&view=rev
Log:
Another bug in the new FT port. Slash was missing after the /nxmaster znode making the master id parser go nuts.

Modified:
    incubator/mesos/trunk/src/master_detector.cpp

Modified: incubator/mesos/trunk/src/master_detector.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/master_detector.cpp?rev=1131767&r1=1131766&r2=1131767&view=diff
==============================================================================
--- incubator/mesos/trunk/src/master_detector.cpp (original)
+++ incubator/mesos/trunk/src/master_detector.cpp Sun Jun  5 05:27:21 2011
@@ -144,7 +144,7 @@ PID MasterDetector::lookupMasterPID(cons
   int ret;
   string result;
 
-  ret = zk->get(znode + seq, false, &result, NULL);
+  ret = zk->get(znode + "/" + seq, false, &result, NULL);
 
   if (ret != ZOK)
     LOG(ERROR) << "failed to fetch new master pid: " << zk->error(ret);