Skip to content

Commit

Permalink
Mark executionPhase option cache-safe (MID-4861)
Browse files Browse the repository at this point in the history
The RepositoryCache.nullOrHarmlessOptions needs serious review.
This commit adds often-used executionPhase option as a cache-safe one.
  • Loading branch information
mederly committed Sep 3, 2018
1 parent bb44f76 commit 80fd9f8
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -500,7 +500,8 @@ private boolean nullOrHarmlessOptions(Collection<SelectorOptions<GetOperationOpt
return false;
}
GetOperationOptions options1 = selectorOptions.getOptions();
if (options1 == null || options1.equals(new GetOperationOptions()) || options1.equals(GetOperationOptions.createAllowNotFound())) {
// TODO FIX THIS!!!
if (options1 == null || options1.equals(new GetOperationOptions()) || options1.equals(GetOperationOptions.createAllowNotFound()) || options1.equals(GetOperationOptions.createExecutionPhase())) {
return true;
}
return false;
Expand Down

0 comments on commit 80fd9f8

Please sign in to comment.