Reset the msgstream threshold to PulsarMaxMessageSize (#10186)

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
pull/10578/head
cai.zhang 2021-10-25 17:57:14 +08:00 committed by GitHub
parent e4909c1c0b
commit c3cce20413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -906,8 +906,7 @@ func (it *insertTask) _assignSegmentID(stream msgstream.MsgStream, pack *msgstre
return 0
}
factor := 10
threshold := Params.PulsarMaxMessageSize / factor
threshold := Params.PulsarMaxMessageSize
log.Debug("Proxy", zap.Int("threshold of message size: ", threshold))
// not accurate
/* #nosec G103 */