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:33 UTC

[5/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/309b1f1c
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/309b1f1c
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/309b1f1c

Branch: refs/heads/master
Commit: 309b1f1c7698dbac80ffc662a72b5557b8df5265
Parents: 236b8e0
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:57 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/309b1f1c/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 2abc49b..69c69f9 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