feat: 3.2.0
1. 优化组缓存的过期问题 2. 优化sql
This commit is contained in:
parent
9cf223278a
commit
2aeb43cfd2
@ -52,7 +52,6 @@
|
||||
</foreach>
|
||||
) tt
|
||||
SET rt.expire_at = tt.expire_at, rt.context_path = tt.context_path,
|
||||
rt.context_path = tt.context_path
|
||||
WHERE rt.host_id = tt.host_id and rt.host_ip = tt.host_ip
|
||||
</update>
|
||||
<select id="countActivePod"
|
||||
|
@ -122,6 +122,8 @@ public class ServerRegister extends AbstractRegister {
|
||||
for (final ServerNode node : serverNodes) {
|
||||
// 刷新全量本地缓存
|
||||
CacheRegisterTable.addOrUpdate(node);
|
||||
// 刷新过期时间
|
||||
CacheConsumerGroup.addOrUpdate(node.getGroupName(), node.getNamespaceId());
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user