yiguolei commented on code in PR #33483:
URL: https://github.com/apache/doris/pull/33483#discussion_r1563673735
##########
fe/fe-core/src/main/java/org/apache/doris/resource/workloadschedpolicy/WorkloadSchedPolicyMgr.java:
##########
@@ -530,10 +546,25 @@ public List<List<String>>
getWorkloadSchedPolicyTvfInfo(TUserIdentity tcurrentUs
return policyProcNode.fetchResult(currentUserIdentity).getRows();
}
+ public boolean checkWhetherGroupHasPolicy(long wgId) {
+ readLock();
+ try {
+ for (Map.Entry<Long, WorkloadSchedPolicy> entry :
idToPolicy.entrySet()) {
+ if (entry.getValue().getWorkloadGroupId() == wgId) {
+ return true;
+ }
+ }
+ } finally {
+ readUnlock();
+ }
+ return false;
+ }
+
public class PolicyProcNode {
Review Comment:
这个proc 功能,我们如果有了系统表,感觉可以不要了,直接删了吧。我们不维护了。
--
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]