File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/main/java/org/elasticsearch/cluster/metadata Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -903,15 +903,15 @@ public IndexMetadata withIncrementedPrimaryTerm(int shardId) {
903903 * @return updated instance with set primary term
904904 */
905905 public IndexMetadata withSetPrimaryTerm (int shardId , long primaryTerm ) {
906- final long [] incremented = this .primaryTerms .clone ();
907- incremented [shardId ] = primaryTerm ;
906+ final long [] newPrimaryTerms = this .primaryTerms .clone ();
907+ newPrimaryTerms [shardId ] = primaryTerm ;
908908 return new IndexMetadata (
909909 this .index ,
910910 this .version ,
911911 this .mappingVersion ,
912912 this .settingsVersion ,
913913 this .aliasesVersion ,
914- incremented ,
914+ newPrimaryTerms ,
915915 this .state ,
916916 this .numberOfShards ,
917917 this .numberOfReplicas ,
You can’t perform that action at this time.
0 commit comments