Skip to content

Commit

Permalink
Fixing using newRepositoryMetadata instead of currentRepositoryMetada…
Browse files Browse the repository at this point in the history
…ta when equalsIgnoreGenerations
  • Loading branch information
psychbot committed Sep 14, 2023
1 parent 68359ce commit 92dcccc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased 2.x]
### Added
- [Remote Store] Introducing concept of RestrictedSystemRepositorySettings for system repository ([#9839](https://github.com/opensearch-project/OpenSearch/pull/9839))
- [Remote Store] Adding support to restrict creation & deletion if system repository and mutation of immutable settings of system repository ([#9839](https://github.com/opensearch-project/OpenSearch/pull/9839))

### Dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public ClusterState execute(ClusterState currentState) {
}
repositoriesMetadata.add(updatedRepositoryMetadata);
} else {
repositoriesMetadata.add(updatedRepositoryMetadata);
repositoriesMetadata.add(repositoryMetadata);
}
}
if (!found) {
Expand Down

0 comments on commit 92dcccc

Please sign in to comment.