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 05:18:52 UTC

svn commit: r1131531 - /incubator/mesos/trunk/src/nexus_sched.cpp

Author: benh
Date: Sun Jun  5 03:18:52 2011
New Revision: 1131531

URL: http://svn.apache.org/viewvc?rev=1131531&view=rev
Log:
Temporary fix for infinite loop caused by the error callback calling stop, calling the error callback (nexusproject/nexus#14).

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

Modified: incubator/mesos/trunk/src/nexus_sched.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/nexus_sched.cpp?rev=1131531&r1=1131530&r2=1131531&view=diff
==============================================================================
--- incubator/mesos/trunk/src/nexus_sched.cpp (original)
+++ incubator/mesos/trunk/src/nexus_sched.cpp Sun Jun  5 03:18:52 2011
@@ -320,7 +320,8 @@ void NexusSchedulerDriver::stop()
   Lock lock(&mutex);
 
   if (!running) {
-    error(1, "cannot call stop - scheduler is not running");
+    // Don't issue an error (could lead to an infinite loop).
+    // TODO(benh): It would be much cleaner to return success or failure!
     return;
   }