smiklosovic commented on code in PR #2961:
URL: https://github.com/apache/cassandra/pull/2961#discussion_r1418693239
##########
src/java/org/apache/cassandra/index/sai/plan/QueryController.java:
##########
@@ -210,6 +216,24 @@ public KeyRangeIterator.Builder
getIndexQueryResults(Collection<Expression> expr
return builder;
}
+ private void maybeTriggerGuardrails(QueryViewBuilder.QueryView queryView)
+ {
+ if (!cfs.isLeveledCompaction())
+ return;
+
+ int referencedIndexes = queryView.referencedIndexes.size();
+
+ if
(Guardrails.maximumReferencedIndexesWithNonParitionRestrictedQuery.failsOn(referencedIndexes,
null))
Review Comment:
here I am just checking if it is going to fail, we do not need any
ClientState for that.
--
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]