You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by gr...@apache.org on 2014/11/04 22:00:31 UTC

[3/5] git commit: PHOENIX-1403 Correct synchronization in ConnectionQueryServicesImpl.init

PHOENIX-1403 Correct synchronization in ConnectionQueryServicesImpl.init


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

Branch: refs/heads/4.0
Commit: 37c4d3eb93bf8ffd139d397530a1ac5994fc9e48
Parents: 623a784
Author: Gabriel Reid <ga...@ngdata.com>
Authored: Tue Nov 4 13:45:19 2014 +0100
Committer: Gabriel Reid <gr...@apache.org>
Committed: Tue Nov 4 21:59:46 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/37c4d3eb/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 21208b5..aeb9ac2 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
@@ -1498,7 +1498,7 @@ public class ConnectionQueryServicesImpl extends DelegateQueryServices implement
                         }
                         return null;
                     }
-                    synchronized (this) {
+                    synchronized (ConnectionQueryServicesImpl.this) {
                         if (initialized) {
                             if (initializationException != null) {
                                 // Throw previous initialization exception, as we won't resuse this instance