Skip to content

Commit

Permalink
remove changes already added in another PR
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 committed Jul 4, 2024
1 parent fcd91f5 commit b32ddde
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1286,11 +1286,6 @@ public Builder templates(Map<String, IndexTemplateMetadata> templates) {
return this;
}

public Builder removeAllTemplates() {
templates.clear();
return this;
}

public Builder templates(TemplatesMetadata templatesMetadata) {
this.templates.clear();
this.templates.putAll(templatesMetadata.getTemplates());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,6 @@ ClusterState readClusterStateInParallel(
metadataBuilder.transientSettings((Settings) remoteReadResult.getObj());
break;
case TEMPLATES_METADATA:
// we need to remove the older templates, as the templates will be refreshed from remote file
metadataBuilder.removeAllTemplates();
metadataBuilder.templates((TemplatesMetadata) remoteReadResult.getObj());
break;
case HASHES_OF_CONSISTENT_SETTINGS:
Expand Down

0 comments on commit b32ddde

Please sign in to comment.