gus-asf commented on code in PR #2244:
URL: https://github.com/apache/solr/pull/2244#discussion_r1489578308


##########
solr/core/src/java/org/apache/solr/search/QueryLimits.java:
##########
@@ -41,11 +43,15 @@ private QueryLimits() {}
    * statement will hinge on hasXXXLimit() static method attached to the 
implementation class.
    *
    * @param req the current SolrQueryRequest.
+   * @param threadCpuTime current thread CPU time monitor.
    */
-  public QueryLimits(SolrQueryRequest req) {
+  public QueryLimits(SolrQueryRequest req, ThreadCpuTime threadCpuTime) {
     if (hasTimeLimit(req)) {
       limits.add(new SolrQueryTimeLimit(req));
     }
+    if (hasCpuLimit(req)) {
+      limits.add(new CpuQueryTimeLimit(req, threadCpuTime));

Review Comment:
   Actually, I like the idea of tracking the parameter names.



-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to