javeme commented on code in PR #2136:
URL: 
https://github.com/apache/incubator-hugegraph/pull/2136#discussion_r1127823374


##########
hugegraph-core/src/main/java/org/apache/hugegraph/backend/store/raft/compress/CompressStrategyManager.java:
##########
@@ -35,31 +35,32 @@ public class CompressStrategyManager {
     private CompressStrategyManager() {
     }
 
-    public static void addCompressStrategy(final int idx, final 
CompressStrategy compressStrategy) {
-        if (compressStrategies.length <= idx) {
-            final CompressStrategy[] newCompressStrategies = new 
CompressStrategy[idx + 5];
+    public static void addCompressStrategy(int index, CompressStrategy 
compressStrategy) {
+        if (compressStrategies.length <= index) {
+            CompressStrategy[] newCompressStrategies = new 
CompressStrategy[index + 5];

Review Comment:
   `index + 5` => `index + MAX_STRATEGY`



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

Reply via email to