Skip to content

Commit e77399d

Browse files
committed
commit elasticsearch
1 parent c8382c2 commit e77399d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ public Builder numberOfShards(int numberOfShards) {
20022002
* We do not support shrinking the shard count.
20032003
* @param shardCount updated shardCount
20042004
*/
2005-
public Builder reshardAddShards(int shardCount, IndexMetadata sourceMetadata) {
2005+
public Builder reshardAddShards(int shardCount, final IndexMetadata sourceMetadata) {
20062006
if (shardCount % numberOfShards() != 0) {
20072007
throw new IllegalArgumentException(
20082008
"New shard count ["
@@ -3029,7 +3029,7 @@ public static ShardId selectCloneShard(int shardId, IndexMetadata sourceIndexMet
30293029
return new ShardId(sourceIndexMetadata.getIndex(), shardId);
30303030
}
30313031

3032-
private static void assertSplitMetadata(int numSourceShards, int numTargetShards, IndexMetadata sourceIndexMetadata) {
3032+
public static void assertSplitMetadata(int numSourceShards, int numTargetShards, IndexMetadata sourceIndexMetadata) {
30333033
if (numSourceShards > numTargetShards) {
30343034
throw new IllegalArgumentException(
30353035
"the number of source shards ["

0 commit comments

Comments
 (0)