Skip to content

Commit

Permalink
remove visible for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Jackie Han <[email protected]>
  • Loading branch information
jackiehanyang committed Oct 2, 2023
1 parent 0c631ee commit 3dbade4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ public static String getIndexMappings(String mapping) throws IOException {
* @param newVersion new index mapping version
* @param listener action listener, if update index is needed, will pass true to its onResponse method
*/
@VisibleForTesting
protected void shouldUpdateIndex(String indexName, Integer newVersion, ActionListener<Boolean> listener) {
private void shouldUpdateIndex(String indexName, Integer newVersion, ActionListener<Boolean> listener) {
IndexMetadata indexMetaData = clusterService.state().getMetadata().indices().get(indexName);
if (indexMetaData == null) {
listener.onResponse(Boolean.FALSE);
Expand Down

0 comments on commit 3dbade4

Please sign in to comment.