branch-2.1: [enhance](table)Remove unnecessary locks #44416 (#44468)

Cherry-picked from #44416

Co-authored-by: zhangdong <zhangdong@selectdb.com>
This commit is contained in:
github-actions[bot]
2024-11-26 19:25:18 +08:00
committed by GitHub
parent 688ef8fe23
commit e677e77085

View File

@ -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() {