ignite-929

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

Branch: refs/heads/ignite-929
Commit: a911715581fa18735f6023249f3a2c269201a665
Parents: d639981
Author: Anton Vinogradov <avinogra...@gridgain.com>
Authored: Thu Jun 11 01:53:32 2015 +0300
Committer: Anton Vinogradov <avinogra...@gridgain.com>
Committed: Thu Jun 11 01:53:32 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheGateway.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a9117155/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheGateway.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheGateway.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheGateway.java
index f9142d1..713a159 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheGateway.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheGateway.java
@@ -40,7 +40,7 @@ public class GridCacheGateway<K, V> {
     private volatile boolean stopped;
 
     /** Client counter. */
-    private volatile AtomicInteger clients = new AtomicInteger(0);
+    private volatile AtomicInteger clients;
 
     /** */
     private GridSpinReadWriteLock rwLock = new GridSpinReadWriteLock();
@@ -52,6 +52,8 @@ public class GridCacheGateway<K, V> {
         assert ctx != null;
 
         this.ctx = ctx;
+
+        clients = new AtomicInteger(0);
     }
 
     /**

Reply via email to