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

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new da2df98  Remove synchronizedMap in TableMetaData (#13264)
da2df98 is described below

commit da2df9814f7983d9ce7693dbe705324ac5f55a90
Author: 吴伟杰 <wuwei...@apache.org>
AuthorDate: Mon Oct 25 20:04:00 2021 +0800

    Remove synchronizedMap in TableMetaData (#13264)
---
 .../shardingsphere/infra/metadata/schema/model/TableMetaData.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/schema/model/TableMetaData.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/schema/model/TableMetaData.java
index c8d09a7..8e146de 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/schema/model/TableMetaData.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/schema/model/TableMetaData.java
@@ -72,7 +72,7 @@ public final class TableMetaData {
                 primaryKeyColumns.add(lowerColumnName);
             }
         }
-        return Collections.synchronizedMap(result);
+        return result;
     }
     
     private Map<String, IndexMetaData> getIndexes(final 
Collection<IndexMetaData> indexMetaDataList) {
@@ -80,7 +80,7 @@ public final class TableMetaData {
         for (IndexMetaData each : indexMetaDataList) {
             result.put(each.getName().toLowerCase(), each);
         }
-        return Collections.synchronizedMap(result);
+        return result;
     }
     
     /**

Reply via email to