This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni 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 747004e  PHOENIX-6069: We should check that the parent table key is in 
the region in the MetaDataEndpointImpl.dropTable code
747004e is described below

commit 747004e70ac8f06d171a443e31657338616864bc
Author: Chinmay Kulkarni <chinmayskulka...@gmail.com>
AuthorDate: Tue Aug 11 11:40:42 2020 -0700

    PHOENIX-6069: We should check that the parent table key is in the region in 
the MetaDataEndpointImpl.dropTable code
---
 .../main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
index b0901f1..54883f8 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
@@ -2248,7 +2248,7 @@ public class MetaDataEndpointImpl extends 
MetaDataProtocol implements RegionCopr
             // Only lock parent table for indexes
             if (parentTableName != null && pTableType == PTableType.INDEX) {
                 parentLockKey = SchemaUtil.getTableKey(tenantIdBytes, 
schemaName, parentTableName);
-                result = checkTableKeyInRegion(lockKey, region);
+                result = checkTableKeyInRegion(parentLockKey, region);
                 if (result != null) {
                     done.run(MetaDataMutationResult.toProto(result));
                     return;

Reply via email to