Commit bb082aa63d4d96974d8d012e1dd626c61a3d0bb8

Authored by 云中非
1 parent 846f63ff

fix:场景联动节点,分区刷新清空缓存

@@ -110,6 +110,7 @@ public class TbSceneReactNode implements TbNode { @@ -110,6 +110,7 @@ public class TbSceneReactNode implements TbNode {
110 @Override 110 @Override
111 public void onPartitionChangeMsg(TbContext ctx, PartitionChangeMsg msg) { 111 public void onPartitionChangeMsg(TbContext ctx, PartitionChangeMsg msg) {
112 // Cleanup the cache for all entities that are no longer assigned to current server partitions 112 // Cleanup the cache for all entities that are no longer assigned to current server partitions
  113 + reactStates.clear();
113 } 114 }
114 115
115 protected ReactState getOrCreateReactState(TbContext ctx, TbSceneReactNodeConfig config, String sceneId) { 116 protected ReactState getOrCreateReactState(TbContext ctx, TbSceneReactNodeConfig config, String sceneId) {