修复节点上线和下线时未清理redis流信息的BUG

This commit is contained in:
648540858
2024-10-24 16:41:41 +08:00
parent 0ddc374c34
commit bf3e181bdb
4 changed files with 35 additions and 9 deletions

View File

@@ -290,7 +290,7 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
return;
}
// 这里主要是控制数据库/redis缓存/以及zlm中存在的代理流 三者状态一致。以数据库中数据为根本
redisCatchStorage.removeStream(mediaServerId, "pull");
redisCatchStorage.removeStream(mediaServerId, "PULL");
List<StreamProxy> streamProxies = streamProxyMapper.selectForEnableInMediaServer(mediaServerId, true);
if (streamProxies.isEmpty()) {
@@ -363,7 +363,7 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
List<StreamProxy> streamProxies = streamProxyMapper.selectForEnableInMediaServer(mediaServerId, true);
// 清理redis相关的缓存
redisCatchStorage.removeStream(mediaServerId, "pull");
redisCatchStorage.removeStream(mediaServerId, "PULL");
if (streamProxies.isEmpty()) {
return;