You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by la...@apache.org on 2019/10/05 20:41:22 UTC
[phoenix] branch master updated: PHOENIX-5499 Upgrading from 4.14.3
client to 4.15.0 client should remove parent->child links from
SYSTEM.CATALOG.
This is an automated email from the ASF dual-hosted git repository.
larsh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push:
new 74f8464 PHOENIX-5499 Upgrading from 4.14.3 client to 4.15.0 client should remove parent->child links from SYSTEM.CATALOG.
74f8464 is described below
commit 74f8464108a98b476c1c39b12150ae37861b7452
Author: Lars Hofhansl <la...@apache.org>
AuthorDate: Sat Oct 5 13:39:14 2019 -0700
PHOENIX-5499 Upgrading from 4.14.3 client to 4.15.0 client should remove parent->child links from SYSTEM.CATALOG.
---
.../src/main/java/org/apache/phoenix/execute/MutationState.java | 6 +++++-
.../src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java b/phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java
index 44760a8..d887468 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java
@@ -161,7 +161,11 @@ public class MutationState implements SQLCloseable {
}
public MutationState(MutationState mutationState) {
- this(mutationState.maxSize, mutationState.maxSizeBytes, mutationState.connection, true, mutationState
+ this(mutationState, mutationState.connection);
+ }
+
+ public MutationState(MutationState mutationState, PhoenixConnection connection) {
+ this(mutationState.maxSize, mutationState.maxSizeBytes, connection, true, mutationState
.getPhoenixTransactionContext());
}
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
index d668758..988a7c6 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java
@@ -372,7 +372,7 @@ public class PhoenixConnection implements Connection, MetaDataMutated, SQLClosea
this.isRequestLevelMetricsEnabled = JDBCUtil.isCollectingRequestLevelMetricsEnabled(url, info,
this.services.getProps());
this.mutationState = mutationState == null ? newMutationState(maxSize,
- maxSizeBytes) : new MutationState(mutationState);
+ maxSizeBytes) : new MutationState(mutationState, this);
this.metaData = metaData;
this.metaData.pruneTables(pruner);
this.metaData.pruneFunctions(pruner);