Skip to content

Commit

Permalink
Default to true except in the case of concreteWriteIndices
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Feb 7, 2025
1 parent 7bbfd04 commit 777fe07
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,17 @@ public Index concreteWriteIndex(
options.ignoreThrottled()
);

Context context = new Context(state, combinedOptions, false, true, includeDataStreams, isSystemIndexAccessAllowed());
Context context = new Context(
state,
combinedOptions,
System.currentTimeMillis(),
false,
true,
includeDataStreams,
false,
isSystemIndexAccessAllowed(),
false
);
Index[] indices = concreteIndices(context, index);
if (allowNoIndices && indices.length == 0) {
return null;
Expand Down Expand Up @@ -821,7 +831,7 @@ public static class Context {
includeDataStreams,
false,
isSystemIndexAccessAllowed,
false
true
);
}

Expand All @@ -843,15 +853,15 @@ public static class Context {
includeDataStreams,
preserveDataStreams,
isSystemIndexAccessAllowed,
false
true
);
}

Context(ClusterState state, IndicesOptions options, long startTime, boolean isSystemIndexAccessAllowed) {
this(state, options, startTime, false, false, false, false, isSystemIndexAccessAllowed, false);
this(state, options, startTime, false, false, false, false, isSystemIndexAccessAllowed, true);
}

protected Context(
Context(
ClusterState state,
IndicesOptions options,
long startTime,
Expand Down

0 comments on commit 777fe07

Please sign in to comment.