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/05/26 00:34:32 UTC

svn commit: r1342831 - /incubator/mesos/trunk/src/master/master.cpp

Author: benh
Date: Fri May 25 22:34:32 2012
New Revision: 1342831

URL: http://svn.apache.org/viewvc?rev=1342831&view=rev
Log:
Fixed master ID generation so that we don't print negative numbers (https://reviews.apache.org/r/5240).

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

Modified: incubator/mesos/trunk/src/master/master.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/master/master.cpp?rev=1342831&r1=1342830&r2=1342831&view=diff
==============================================================================
--- incubator/mesos/trunk/src/master/master.cpp (original)
+++ incubator/mesos/trunk/src/master/master.cpp Fri May 25 22:34:32 2012
@@ -265,7 +265,7 @@ void Master::initialize()
   // address and port from self() and the OS PID.
 
   Try<string> id =
-    strings::format("%s-%d-%d-%d", DateUtils::currentDate().c_str(),
+    strings::format("%s-%u-%u-%d", DateUtils::currentDate().c_str(),
                     self().ip, self().port, getpid());
 
   CHECK(!id.isError()) << id.error();