Commit 62b1537 1 parent 2ed8ff0 commit 62b1537 Copy full SHA for 62b1537
File tree 1 file changed +2
-2
lines changed
server/src/main/java/org/opensearch/common/cache
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,13 +116,13 @@ public class Cache<K, V> {
116
116
private RemovalListener <K , V > removalListener = notification -> {};
117
117
118
118
private final int numberOfSegments ;
119
- private static final int NUMBER_OF_SEGMENTS_DEFAULT = 256 ;
119
+ public static final int NUMBER_OF_SEGMENTS = 256 ;
120
120
121
121
Cache (final int numberOfSegments ) {
122
122
if (numberOfSegments != -1 ) {
123
123
this .numberOfSegments = numberOfSegments ;
124
124
} else {
125
- this .numberOfSegments = NUMBER_OF_SEGMENTS_DEFAULT ;
125
+ this .numberOfSegments = NUMBER_OF_SEGMENTS ;
126
126
}
127
127
this .segments = new CacheSegment [this .numberOfSegments ];
128
128
for (int i = 0 ; i < this .numberOfSegments ; i ++) {
You can’t perform that action at this time.
0 commit comments