deardeng commented on code in PR #33201:
URL: https://github.com/apache/doris/pull/33201#discussion_r1577102882


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Database.java:
##########
@@ -470,6 +470,10 @@ public Map<Long, Table> getIdToTableRef() {
         return idToTable;
     }
 
+    public List<Long> getTableIds() {
+        return new ArrayList<>(idToTable.keySet());

Review Comment:
   不用吧,idToTable 是个ConcurrentMap,线程安全的。而且line 473 附近几个idToTable 也都没加锁



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to