hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1673377 - /hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java
Date Tue, 14 Apr 2015 07:47:59 GMT
Author: edwardyoon
Date: Tue Apr 14 07:47:58 2015
New Revision: 1673377

URL: http://svn.apache.org/r1673377
Log:
fix minor bug

Modified:
    hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java

Modified: hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java
URL: http://svn.apache.org/viewvc/hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java?rev=1673377&r1=1673376&r2=1673377&view=diff
==============================================================================
--- hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java (original)
+++ hama/trunk/graph/src/main/java/org/apache/hama/graph/GraphJobRunner.java Tue Apr 14 07:47:58
2015
@@ -306,6 +306,9 @@ public final class GraphJobRunner<V exte
     @Override
     public void run() {
       try {
+          // call once at initial superstep
+          vertex.setup(conf);
+        
           vertex.compute(msgs);
           vertices.finishVertexComputation(vertex);
       } catch (IOException e) {
@@ -448,9 +451,6 @@ public final class GraphJobRunner<V exte
 
     vertex.setRunner(this);
     vertices.put(vertex);
-    
-    // call once
-    vertex.setup(conf);
   }
 
   /**



Mime
View raw message