coderzc commented on code in PR #181:
URL: 
https://github.com/apache/incubator-hugegraph-computer/pull/181#discussion_r867329418


##########
computer-core/src/main/java/com/baidu/hugegraph/computer/core/sort/sorting/SortManager.java:
##########
@@ -63,16 +63,18 @@
     public static final Logger LOG = Log.logger(SortManager.class);
 
     private final ComputerContext context;
-    private final ExecutorService sortExecutor;
+    private ExecutorService sortExecutor;
     private final Sorter sorter;
     private final int capacity;
     private final int flushThreshold;
 
     public SortManager(ComputerContext context) {
         this.context = context;
         Config config = context.config();
-        this.sortExecutor = ExecutorUtil.newFixedThreadPool(
-                            this.threadNum(config), this.threadPrefix());
+        if (this.threadNum(config) != 0) {
+            this.sortExecutor = ExecutorUtil.newFixedThreadPool(
+                                this.threadNum(config), this.threadPrefix());
+        }

Review Comment:
   ok
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to