ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [03/34] incubator-ignite git commit: #ignite-743: Implement IgniteCacheProxyLockFree.
Date Fri, 17 Apr 2015 11:31:23 GMT
#ignite-743:  Implement IgniteCacheProxyLockFree.


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

Branch: refs/heads/ignite-758
Commit: a9bd0178772fbe785da496ea791bfc984b56b9a5
Parents: 56ef269
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Tue Apr 14 16:18:37 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Tue Apr 14 16:18:37 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/IgniteCacheProxy.java     | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a9bd0178/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
index dcdf0be..d6f4e85 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/IgniteCacheProxy.java
@@ -96,7 +96,7 @@ public class IgniteCacheProxy<K, V> extends AsyncSupportAdapter<IgniteCache<K,
V
     /**
      * @return Lock free instance.
      */
-    public IgniteCacheProxyLockFree<K,V> lockFree() {
+    public IgniteCacheProxyLockFree<K, V> lockFree() {
         return delegate;
     }
 
@@ -885,8 +885,6 @@ public class IgniteCacheProxy<K, V> extends AsyncSupportAdapter<IgniteCache<K,
V
     /** {@inheritDoc} */
     @Override public void writeExternal(ObjectOutput out) throws IOException {
         out.writeObject(delegate);
-
-        out.writeObject(prj);
     }
 
     /** {@inheritDoc} */
@@ -894,7 +892,7 @@ public class IgniteCacheProxy<K, V> extends AsyncSupportAdapter<IgniteCache<K,
V
     @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
{
         delegate = (IgniteCacheProxyLockFree<K, V>)in.readObject();
 
-        prj = (GridCacheProjectionImpl<K, V>)in.readObject();
+        prj = (GridCacheProjectionImpl<K, V>)delegate.delegate();
 
         gate = delegate.context().gate();
     }


Mime
View raw message