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
  • Loading branch information
acrites authored Jul 24, 2024
1 parent 92c5d57 commit e2b8acb
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 e2b8acb

Please sign in to comment.