Repository: ignite Updated Branches: refs/heads/ignite-single-op-tx dded8563d -> c91d8c7c7
'Single' operations optimizations for tx cache. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c91d8c7c Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c91d8c7c Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c91d8c7c Branch: refs/heads/ignite-single-op-tx Commit: c91d8c7c7219ee05975478d472c92121a2e14e2c Parents: dded856 Author: sboikov <sboi...@gridgain.com> Authored: Fri Nov 13 16:35:11 2015 +0300 Committer: sboikov <sboi...@gridgain.com> Committed: Fri Nov 13 16:35:11 2015 +0300 ---------------------------------------------------------------------- .../distributed/GridDistributedTxRemoteAdapter.java | 5 ----- .../processors/cache/transactions/IgniteInternalTx.java | 5 ----- .../processors/cache/transactions/IgniteTxAdapter.java | 5 ----- .../cache/transactions/IgniteTxLocalAdapter.java | 12 ------------ 4 files changed, 27 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/c91d8c7c/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java index 93303c8..aa9a31e 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java @@ -188,11 +188,6 @@ public class GridDistributedTxRemoteAdapter extends IgniteTxAdapter } /** {@inheritDoc} */ - @Override public Collection<Integer> activeCacheIds() { - return Collections.emptyList(); - } - - /** {@inheritDoc} */ @Override public boolean activeCachesDeploymentEnabled() { return false; } http://git-wip-us.apache.org/repos/asf/ignite/blob/c91d8c7c/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteInternalTx.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteInternalTx.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteInternalTx.java index 7819ed3..3b5c962 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteInternalTx.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteInternalTx.java @@ -275,11 +275,6 @@ public interface IgniteInternalTx extends AutoCloseable, GridTimeoutObject { public boolean implicitSingle(); /** - * @return Collection of cache IDs involved in this transaction. - */ - public Collection<Integer> activeCacheIds(); - - /** * @return Transaction state. */ public IgniteTxState txState(); http://git-wip-us.apache.org/repos/asf/ignite/blob/c91d8c7c/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxAdapter.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxAdapter.java index ab400eb..d846ae1 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxAdapter.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxAdapter.java @@ -1727,11 +1727,6 @@ public abstract class IgniteTxAdapter extends GridMetadataAwareAdapter } /** {@inheritDoc} */ - @Override public Collection<Integer> activeCacheIds() { - throw new IllegalStateException("Deserialized transaction can only be used as read-only."); - } - - /** {@inheritDoc} */ @Override public boolean activeCachesDeploymentEnabled() { return false; } http://git-wip-us.apache.org/repos/asf/ignite/blob/c91d8c7c/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxLocalAdapter.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxLocalAdapter.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxLocalAdapter.java index 57485fe..05b5ed0 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxLocalAdapter.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxLocalAdapter.java @@ -156,9 +156,6 @@ public abstract class IgniteTxLocalAdapter extends IgniteTxAdapter /** Commit error. */ protected AtomicReference<Throwable> commitErr = new AtomicReference<>(); - /** Active cache IDs. */ - protected Set<Integer> activeCacheIds = new HashSet<>(); - /** Need return value. */ protected boolean needRetVal; @@ -270,15 +267,6 @@ public abstract class IgniteTxLocalAdapter extends IgniteTxAdapter return false; } - /** - * Gets collection of active cache IDs for this transaction. - * - * @return Collection of active cache IDs. - */ - @Override public Collection<Integer> activeCacheIds() { - return activeCacheIds; - } - /** {@inheritDoc} */ @Override public boolean activeCachesDeploymentEnabled() { return depEnabled;