修复节点上线和下线时未清理redis流信息的BUG
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user