ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [2/2] ignite git commit: ignite-1.9-fix
Date Thu, 02 Mar 2017 08:49:45 GMT
ignite-1.9-fix


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/751ec7df
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/751ec7df
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/751ec7df

Branch: refs/heads/ignite-1.9-fix
Commit: 751ec7dfe79c858cbb4df293a52d61cb941a25c2
Parents: 56964ad
Author: sboikov <sboikov@gridgain.com>
Authored: Thu Mar 2 11:48:20 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Thu Mar 2 11:48:20 2017 +0300

----------------------------------------------------------------------
 .../internal/managers/communication/GridIoManager.java  | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/751ec7df/modules/core/src/main/java/org/apache/ignite/internal/managers/communication/GridIoManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/communication/GridIoManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/managers/communication/GridIoManager.java
index 84b4543..ecabb27 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/managers/communication/GridIoManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/communication/GridIoManager.java
@@ -188,6 +188,13 @@ public class GridIoManager extends GridManagerAdapter<CommunicationSpi<Serializa
     /** */
     private final AtomicLong ioTestId = new AtomicLong();
 
+    /** No-op runnable. */
+    private static final IgniteRunnable NOOP = new IgniteRunnable() {
+        @Override public void run() {
+            // No-op.
+        }
+    };
+
     /**
      * @param ctx Grid kernal context.
      */
@@ -785,8 +792,7 @@ public class GridIoManager extends GridManagerAdapter<CommunicationSpi<Serializa
                 finally {
                     threadProcessingMessage(false);
 
-                    if (msgC != null)
-                        msgC.run();
+                    msgC.run();
                 }
             }
 
@@ -1272,7 +1278,7 @@ public class GridIoManager extends GridManagerAdapter<CommunicationSpi<Serializa
             else if (async) {
                 assert msg instanceof GridIoUserMessage : ioMsg; // Async execution was added
only for IgniteMessaging.
 
-                processRegularMessage(locNodeId, ioMsg, plc, null);
+                processRegularMessage(locNodeId, ioMsg, plc, NOOP);
             }
             else
                 processRegularMessage0(ioMsg, locNodeId);


Mime
View raw message