yiguolei commented on code in PR #49884: URL: https://github.com/apache/doris/pull/49884#discussion_r2035060842
########## fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/WorkloadGroupMgr.java: ########## @@ -670,4 +656,62 @@ public ProcResult fetchResult(UserIdentity currentUserIdentity) { return result; } } + + + public List<WorkloadGroup> getOldWorkloadGroup() { + List<WorkloadGroup> oldWgList = Lists.newArrayList(); + readLock(); + try { + for (Map.Entry<Pair<String, String>, WorkloadGroup> entry : nameToWorkloadGroup.entrySet()) { + if (entry.getKey().first == EMPTY_COMPUTE_GROUP) { + oldWgList.add(entry.getValue()); + } + } + } finally { + readUnlock(); + } + return oldWgList; + } + + public void dropOldWorkloadGroup(Set<String> cgSet, WorkloadGroup oldWg) { Review Comment: 这个不要叫drop吧,你这个叫convert global wg to per local cg -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org