maedhroz commented on code in PR #3061:
URL: https://github.com/apache/cassandra/pull/3061#discussion_r1463736318


##########
src/java/org/apache/cassandra/service/StorageService.java:
##########
@@ -1891,6 +1891,21 @@ public boolean isConcurrentValidatorsLimitEnforced()
         return DatabaseDescriptor.allowUnlimitedConcurrentValidations;
     }
 
+    @Override
+    public int getConcurrentIndexBuilders()
+    {
+        return DatabaseDescriptor.getConcurrentIndexBuilders();
+    }
+
+    @Override
+    public void setConcurrentIndexBuilders(int value)
+    {
+        if (value <= 0)
+            throw new IllegalArgumentException("Number of concurrent index 
builders should be greater than 0.");
+        DatabaseDescriptor.setConcurrentIndexBuilders(value);
+        
CompactionManager.instance.setConcurrentIndexBuilders(DatabaseDescriptor.getConcurrentIndexBuilders());

Review Comment:
   nit:
   ```suggestion
           CompactionManager.instance.setConcurrentIndexBuilders(value);
   ```



-- 
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