Skip to content

Commit

Permalink
Merge pull request TencentBlueKing#325 from tbs60/dev_yanafu
Browse files Browse the repository at this point in the history
bug: 文件发送rule修改,避免OOM
  • Loading branch information
tming authored Nov 28, 2024
2 parents 18dd8b7 + f39e177 commit 80fd3de
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,10 +1112,11 @@ func (m *Mgr) ensureFiles(
blog.Debugf("remote: ensure file %s and match rule %d", fd.File.FilePath, t)
servers := make([]*dcProtocol.Host, 0, 0)
switch t {
case dcSDK.FilterRuleHandleDefault:
r = append(r, "")
continue

//此处会导致文件不被发送,注释掉保证文件都在此处发送,共用内存锁避免OOM
/*case dcSDK.FilterRuleHandleDefault:
r = append(r, "")
continue
*/
case dcSDK.FilterRuleHandleAllDistribution:
// cleaner = append(cleaner, f)
if err = m.fileMessageBank.ensure(sender, sandbox); err != nil {
Expand Down

0 comments on commit 80fd3de

Please sign in to comment.