Skip to content

Commit

Permalink
Adds ordered list user state support to fnapi accessor cache. (#31923) (
Browse files Browse the repository at this point in the history
#32013)

Co-authored-by: Andrew Crites <[email protected]>
  • Loading branch information
shunping and acrites authored Jul 29, 2024
1 parent bb828dc commit 7fbbe0b
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -813,14 +813,8 @@ public WatermarkHoldState bindWatermark(
private Cache<?, ?> getCacheFor(StateKey stateKey) {
switch (stateKey.getTypeCase()) {
case BAG_USER_STATE:
for (CacheToken token : cacheTokens.get()) {
if (!token.hasUserState()) {
continue;
}
return Caches.subCache(processWideCache, token, stateKey);
}
break;
case MULTIMAP_KEYS_USER_STATE:
case ORDERED_LIST_USER_STATE:
for (CacheToken token : cacheTokens.get()) {
if (!token.hasUserState()) {
continue;
Expand Down

0 comments on commit 7fbbe0b

Please sign in to comment.