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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new e677e77085f branch-2.1: [enhance](table)Remove unnecessary locks 
#44416 (#44468)
e677e77085f is described below

commit e677e77085f64731436ef53e01e87f3b7260da71
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 26 19:25:18 2024 +0800

    branch-2.1: [enhance](table)Remove unnecessary locks #44416 (#44468)
    
    Cherry-picked from #44416
    
    Co-authored-by: zhangdong <[email protected]>
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
index 343d3a3ca8d..f9404e21fa2 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
@@ -1272,12 +1272,7 @@ public class OlapTable extends Table implements 
MTMVRelatedTableIf {
     }
 
     public List<Long> getPartitionIds() {
-        readLock();
-        try {
-            return new ArrayList<>(idToPartition.keySet());
-        } finally {
-            readUnlock();
-        }
+        return new ArrayList<>(idToPartition.keySet());
     }
 
     public Set<String> getCopiedBfColumns() {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to