Skip to content

Commit d29a9c3

Browse files
Drop redundant code comment
1 parent cd388ae commit d29a9c3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

server/src/main/java/org/elasticsearch/transport/RemoteClusterService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,8 @@ public Map<String, OriginalIndices> groupIndices(
203203
) {
204204
final Map<String, OriginalIndices> originalIndicesMap = new HashMap<>();
205205
final Map<String, List<String>> groupedIndices;
206-
/*
207-
* We could use IndicesAndAliasesResolverField.NO_INDICES_OR_ALIASES_ARRAY but that'd require adding dependency on its
208-
* module and doing so results in a circular dependency warnings.
209-
*/
210206
if (returnLocalAll == false && IndexNameExpressionResolver.isNoneExpression(indices)) {
211207
groupedIndices = Map.of();
212-
/*
213-
* We set returnLocalAll to false because this semantic ["*", "-*"] specifically means that it's alright to return
214-
* an empty response and in this context we do not want to fallback to the local cluster.
215-
*/
216208
} else {
217209
groupedIndices = groupClusterIndices(remoteClusterNames, indices);
218210
}

0 commit comments

Comments
 (0)