You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ra...@apache.org on 2017/11/30 10:33:25 UTC

phoenix git commit: PHOENIX-4422 Connection to server is very slow.(Sergey Soldatov)

Repository: phoenix
Updated Branches:
  refs/heads/5.x-HBase-2.0 ab56b3de5 -> 321cd47d8


PHOENIX-4422 Connection to server is very slow.(Sergey Soldatov)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/321cd47d
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/321cd47d
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/321cd47d

Branch: refs/heads/5.x-HBase-2.0
Commit: 321cd47d8d47b1771e7b3844f4d23e0f47c79f7e
Parents: ab56b3d
Author: Rajeshbabu Chintaguntla <ra...@apache.org>
Authored: Thu Nov 30 16:03:08 2017 +0530
Committer: Rajeshbabu Chintaguntla <ra...@apache.org>
Committed: Thu Nov 30 16:03:08 2017 +0530

----------------------------------------------------------------------
 .../org/apache/phoenix/query/ConnectionQueryServicesImpl.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/321cd47d/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
index 9485887..b852316 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java
@@ -1123,12 +1123,13 @@ public class ConnectionQueryServicesImpl extends DelegateQueryServices implement
                     }
                     newDesc.removeValue(Bytes.toBytes(PhoenixTransactionContext.READ_NON_TX_DATA));
                 }
-                if (existingDesc.equals(newDesc)) {
+                TableDescriptor result = newDesc.build();
+                if (existingDesc.equals(result)) {
                     return null; // Indicate that no metadata was changed
                 }
 
-                modifyTable(physicalTableName, newDesc.build(), true);
-                return newDesc.build();
+                modifyTable(physicalTableName, result, true);
+                return result;
             }
 
         } catch (IOException e) {